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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin831
RA = 340.865, Dec = -25.7363
tmin = 454723201, tmax = 454982401
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='436463', job_status='RUN', time_executed='2021-09-28 18:37:28.101982', time_epoch_executed='1632879448.1' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='831'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/436463

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/436463/ft1_4FGL_J2243.4-2544_daily_bin831.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/436463/ft2_4FGL_J2243.4-2544_daily_bin831.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/436463/ft1_4FGL_J2243.4-2544_daily_bin831.fits outfile=/scratch/kocevski/436463/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin831.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=454723201.0 tmax=454982401.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.42
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/436463/ft2_4FGL_J2243.4-2544_daily_bin831.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/436463/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin831.fits evtable="EVENTS" outfile="/scratch/kocevski/436463/ft1_filtered_4FGL_J2243.4-2544_daily_bin831.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/436463/ft1_filtered_4FGL_J2243.4-2544_daily_bin831.fits" evtable="EVENTS" scfile=/scratch/kocevski/436463/ft2_4FGL_J2243.4-2544_daily_bin831.fits sctable="SC_DATA" outfile=/scratch/kocevski/436463/ltcube_454723201_454982401_4FGL_J2243.4-2544_daily_bin831.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/436463/ft2_4FGL_J2243.4-2544_daily_bin831.fits
.....................!
real 11.90
user 11.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/436463/ft1_filtered_4FGL_J2243.4-2544_daily_bin831.fits evtable="EVENTS" scfile=/scratch/kocevski/436463/ft2_4FGL_J2243.4-2544_daily_bin831.fits sctable="SC_DATA" expcube=/scratch/kocevski/436463/ltcube_454723201_454982401_4FGL_J2243.4-2544_daily_bin831.fits outfile=/scratch/kocevski/436463/expmap_454723201_454982401_4FGL_J2243.4-2544_daily_bin831.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/436463/ltcube_454723201_454982401_4FGL_J2243.4-2544_daily_bin831.fits
.....................!
real 191.56
user 186.46
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/436463/ft1_filtered_4FGL_J2243.4-2544_daily_bin831.fits scfile=/scratch/kocevski/436463/ft2_4FGL_J2243.4-2544_daily_bin831.fits outfile=/scratch/kocevski/436463/cmap_454723201_454982401_4FGL_J2243.4-2544_daily_bin831.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/436463/ft1_filtered_4FGL_J2243.4-2544_daily_bin831.fits scfile=/scratch/kocevski/436463/ft2_4FGL_J2243.4-2544_daily_bin831.fits outfile=/scratch/kocevski/436463/cmap_HighResolution_454723201_454982401_4FGL_J2243.4-2544_daily_bin831.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/436463/ft1_filtered_4FGL_J2243.4-2544_daily_bin831.fits evtable="EVENTS" scfile=/scratch/kocevski/436463/ft2_4FGL_J2243.4-2544_daily_bin831.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/436463/Model_4FGL_J2243.4-2544_daily_bin831.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/436463/ft1_filtered_4FGL_J2243.4-2544_daily_bin831.fits.....................!
real 40.32
user 39.03
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5436       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 '    1.8763       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.182       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.6380       1.0000         .10000E-03   10000.    
    12 'norm      '    4.6166       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .51137       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.705       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    8.0525       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .86425       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98145       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=   4512.168     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2493 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.139       -.92468E-06** at limit **
   2  Prefactor     .10000E-03    41.156       -.23100E-06** at limit **
   3  norm          1.5436        .52366        .70221E-08    .42265E-04
   4  Prefactor     .10000E-03    4.0408        .53566E-07** at limit **
   5  Prefactor     .10000E-03    21.320        .86578E-07** at limit **
   6  Prefactor     1.8765        12.717       -.16616E-05   -.27779E-03
   7  Prefactor     .10000E-03    206.30       -.16115E-05** at limit **
   8  norm          17.182        17.823       -.77638E-07    .17726E-04
   9  Prefactor     22.420        27.638        .12981E-05   -.22032E-04
  10  Prefactor     .10000E-03    13.532       -.10936E-05** at limit **
  11  norm          1.6377        1.1914       -.47047E-07   -.28747E-03
  12  norm          4.6163        3.6961       -.11638E-05    .20494E-03
  13  Prefactor     24.170        58.858        .14770E-04   -.83142E-04
  14  Prefactor     .10000E-03    7.5608        .25448E-07** at limit **
  15  norm          .51259        4.1666       -.93666E-06   -.49899E-03
  16  Prefactor     15.710        14.774        .46239E-06    .71501E-04
  17  Prefactor     .10000E-03    6.9120       -.10272E-06** at limit **
  18  norm          .10000E-03    .27203       -.12237E-07** at limit **
  19  Prefactor     .10000E-03    71.338        .18333E-06** at limit **
  20  Prefactor     .10000E-03    3.0512       -.22937E-07** at limit **
  21  Prefactor     .10000E-03    4.6119        .89561E-07** at limit **
  22  norm          8.0527        4.6461       -.12394E-05    .40031E-03
  23  Prefactor     .10000E-03    13.335        .15739E-05** at limit **
  24  Normalizat    .86407        .20792       -.62931E-06    .10694E-03
  25  Prefactor     .98167        .18956        .31392E-06    .61804E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.54357
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87653
  Prefactor  = 0.0001
  norm       = 17.1816
  Prefactor  = 22.4198
  Prefactor  = 0.0001
  norm       = 1.63766
  norm       = 4.61627
  Prefactor  = 24.1701
  Prefactor  = 0.0001
  norm       = 0.512591
  Prefactor  = 15.7097
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.05271
  Prefactor  = 0.0001
  Normalizat = 0.864071
  Prefactor  = 0.981665
 **********
 **   18 **HESSE 
 **********

 FCN=   4512.168     FROM HESSE     STATUS=OK           425 CALLS     2918 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.181        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5436        .52396        .27402E-04   -1.5459    
   4  Prefactor     .10000E-03    4.0535        .13187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.8765        13.433        .30398E-03   -1.5434    
   7  Prefactor     .10000E-03    207.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.182        17.816        .96623E-04   -1.4879    
   9  Prefactor     22.420        27.624        .84583E-04   -1.4761    
  10  Prefactor     .10000E-03    13.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.6377        1.1867        .59912E-04   -1.5452    
  12  norm          4.6163        3.6617        .92095E-04   -1.5278    
  13  Prefactor     24.170        57.733        .81503E-04   -1.4724    
  14  Prefactor     .10000E-03    7.5976        .18034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .51259        8.4235        .24846E-02   -1.5565    
  16  Prefactor     15.710        14.660        .10107E-03   -1.4915    
  17  Prefactor     .10000E-03    6.9952        .17187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .33017        .66643E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    71.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.0533        .11460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6263        .14079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          8.0527        4.6326        .10607E-03   -1.5140    
  23  Prefactor     .10000E-03    13.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .86407        .24815        .25789E-03   -.97734    
  25  Prefactor     .98167        .22808        .22586E-03   -.93343    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34153e-09
Minuit parameter uncertainties:
  1  3.17156e-05
  2  1.46551e-05
  3  0.523965
  4  1.42763e-06
  5  1.4415e-05
  6  10.0444
  7  0.000277044
  8  17.8214
  9  27.6399
  10  0.000134646
  11  1.18669
  12  3.66184
  13  57.867
  14  3.30173e-07
  15  4.15616
  16  14.6632
  17  3.31462e-05
  18  8.59949e-07
  19  1.43397e-05
  20  5.6873e-07
  21  9.03567e-06
  22  4.6328
  23  4.06394e-05
  24  0.248478
  25  0.228299
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.616e+00  3.662e+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:  9.817e-01  2.283e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.641e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.11
Ra Dec: 340.865 -25.736
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 4.47e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 2.25e-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) = 4512.03819351
delta logL = 0.129641138838

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4512.03435601
delta logL = 0.133478640825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9969       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7273       1.0000          .0000       5.0000    
     3 'Normalizat'    .87394       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97682       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=   4512.034     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      226 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9974        121.65        .44975E-02    .12315E-03
   2  alpha         1.7276        2.9317        .32228        .87362E-05
   3  Normalizat    .87387        .33878        .44568E-01    .81190E-05
   4  Prefactor     .97687        .26577        .45977E-01    .83652E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.9974
  alpha      = 1.72757
  Normalizat = 0.873871
  Prefactor  = 0.976865
 **********
 **   18 **HESSE 
 **********

 FCN=   4512.034     FROM HESSE     STATUS=OK            33 CALLS      259 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9974        3.3575        .97810E-04   -1.5261    
   2  alpha         1.7276        .51612        .12577E-01   -.31411    
   3  Normalizat    .87387        .23945        .25664E-03   -.97384    
   4  Prefactor     .97687        .22350        .22636E-03   -.93505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60121e-12
Minuit parameter uncertainties:
  1  3.35761
  2  0.520257
  3  0.239738
  4  0.223709
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/436463': 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) = 4512.03435586
delta logL = 0.133478789383

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  4.997e+00  3.358e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.728e+00  5.203e-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:  9.769e-01  2.237e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.739e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 1.73 +/- 0.52
Photon Flux (Free Index): 3.51e-08 +/- 2.97e-08
Energy Flux (Free Index): 3.69e-05 +/- 3.20e-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/436463/cmap_HighResolution_454723201_454982401_4FGL_J2243.4-2544_daily_bin831.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.47e-08', energy_flux2='3.69e-05', photon_flux_error='3.54e-08', dlogl='1.33e-01', energy_flux='2.84e-05', photon_flux2='3.51e-08', job_status='DONE', time_completed='2021-09-28 18:45:33.929857', photon_index_error2='0.52', photon_index2='1.73', ts='5.11', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='3.20e-05', EG='0.86', time_epoch_completed='1632879933.93', return_code='0', job_id='436463', GAL2='0.98', EG2='0.87', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='2.97e-08', ts2='5.41', photon_index='2.00' WHERE bin_id='831' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:45:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0227>
Subject: Job 436463: <4FGL_J2243.4-2544_daily_bin831> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin831 340.865 -25.7363 454723201 454982401 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 :                                   486.21 sec.
    Max Memory :                                 1015 MB
    Average Memory :                             266.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   614 sec.
    Turnaround time :                            616 sec.

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

