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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1182
RA = 340.865, Dec = -25.7363
tmin = 545702401, tmax = 545961601
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='438056', job_status='RUN', time_executed='2021-09-28 18:43:01.224520', time_epoch_executed='1632879781.22' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1182'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438056/ft1_4FGL_J2243.4-2544_daily_bin1182.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438056/ft2_4FGL_J2243.4-2544_daily_bin1182.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438056/ft1_4FGL_J2243.4-2544_daily_bin1182.fits outfile=/scratch/kocevski/438056/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1182.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=545702401.0 tmax=545961601.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.98
user 3.78
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438056/ft1_filtered_4FGL_J2243.4-2544_daily_bin1182.fits" evtable="EVENTS" scfile=/scratch/kocevski/438056/ft2_4FGL_J2243.4-2544_daily_bin1182.fits sctable="SC_DATA" outfile=/scratch/kocevski/438056/ltcube_545702401_545961601_4FGL_J2243.4-2544_daily_bin1182.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/438056/ft2_4FGL_J2243.4-2544_daily_bin1182.fits
.....................!
real 11.66
user 11.33
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438056/ft1_filtered_4FGL_J2243.4-2544_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/438056/ft2_4FGL_J2243.4-2544_daily_bin1182.fits sctable="SC_DATA" expcube=/scratch/kocevski/438056/ltcube_545702401_545961601_4FGL_J2243.4-2544_daily_bin1182.fits outfile=/scratch/kocevski/438056/expmap_545702401_545961601_4FGL_J2243.4-2544_daily_bin1182.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/438056/ltcube_545702401_545961601_4FGL_J2243.4-2544_daily_bin1182.fits
.....................!
real 190.62
user 185.56
sys 4.58

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/438056/ft1_filtered_4FGL_J2243.4-2544_daily_bin1182.fits scfile=/scratch/kocevski/438056/ft2_4FGL_J2243.4-2544_daily_bin1182.fits outfile=/scratch/kocevski/438056/cmap_545702401_545961601_4FGL_J2243.4-2544_daily_bin1182.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438056/ft1_filtered_4FGL_J2243.4-2544_daily_bin1182.fits scfile=/scratch/kocevski/438056/ft2_4FGL_J2243.4-2544_daily_bin1182.fits outfile=/scratch/kocevski/438056/cmap_HighResolution_545702401_545961601_4FGL_J2243.4-2544_daily_bin1182.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/438056/ft1_filtered_4FGL_J2243.4-2544_daily_bin1182.fits evtable="EVENTS" scfile=/scratch/kocevski/438056/ft2_4FGL_J2243.4-2544_daily_bin1182.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438056/Model_4FGL_J2243.4-2544_daily_bin1182.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/438056/ft1_filtered_4FGL_J2243.4-2544_daily_bin1182.fits.....................!
real 38.03
user 36.66
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    133.86       1.0000         .10000E-03   10000.    
     3 'norm      '    .47253       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2154       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10772E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .47167       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.426       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .71349       1.0000         .10000E-03   10000.    
    12 'norm      '    .32966       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.744       1.0000         .10000E-03   10000.    
    15 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.273       1.0000         .10000E-03   10000.    
    18 'norm      '    1.6202       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    5.5895       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4150       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73634       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=   4183.595     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3030 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.260        .18054E-05** at limit **
   2  Prefactor     133.87        89.186        .18501E-05    .80324E-04
   3  norm          .47253        .26377        .29921E-08   -.22374E-03
   4  Prefactor     1.2140        23.698        .59313E-05    .14463E-03
   5  Prefactor     .10035E-03    29.803        .55452E-05** at limit **
   6  Prefactor     .47407        7.5978        .25497E-05   -.21961E-03
   7  Prefactor     .10000E-03    47.739       -.37711E-06** at limit **
   8  norm          12.425        17.184       -.21375E-07   -.37929E-04
   9  Prefactor     .10000E-03    13.674        .70034E-07** at limit **
  10  Prefactor     .10000E-03    3.9162       -.97163E-08** at limit **
  11  norm          .71482        1.5534        .58274E-06    .11892E-02
  12  norm          .32837        1.3246       -.47950E-07   -.57148E-04
  13  Prefactor     .10002E-03    95.075       -.42469E-05** at limit **
  14  Prefactor     14.748        16.452        .23033E-06   -.69631E-04
  15  norm          .10000E-03    2.0399       -.14715E-07** at limit **
  16  Prefactor     .10000E-03    8.8634       -.14246E-07** at limit **
  17  Prefactor     17.278        17.268        .54586E-07   -.30323E-04
  18  norm          1.6202        1.1427        .83542E-07    .24649E-03
  19  Prefactor     .10000E-03    47.080       -.46938E-06** at limit **
  20  Prefactor     .10000E-03    15.267       -.28325E-06** at limit **
  21  Prefactor     .10000E-03    16.725        .24884E-06** at limit **
  22  norm          5.5902        6.9407        .43079E-06    .86685E-04
  23  Prefactor     .10000E-03    72.765        .76817E-06** at limit **
  24  Normalizat    1.4147        .25018       -.68248E-06   -.36889E-03
  25  Prefactor     .73660        .21215       -.94931E-06   -.27946E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 133.87
  norm       = 0.47253
  Prefactor  = 1.21397
  Prefactor  = 0.000100347
  Prefactor  = 0.474071
  Prefactor  = 0.0001
  norm       = 12.4253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.714822
  norm       = 0.328367
  Prefactor  = 0.000100024
  Prefactor  = 14.7479
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2779
  norm       = 1.62017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.59016
  Prefactor  = 0.000100002
  Normalizat = 1.41471
  Prefactor  = 0.7366
 **********
 **   18 **HESSE 
 **********

 FCN=   4183.595     FROM HESSE     STATUS=OK           429 CALLS     3459 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     133.87        88.732        .34806E-04   -1.3389    
   3  norm          .47253        .26383        .24124E-04   -1.5570    
   4  Prefactor     1.2140        24.617        .40978E-03   -1.5488    
   5  Prefactor     .10035E-03    73.842        .49982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .47407        13.177        .30073E-02   -1.5570    
   7  Prefactor     .10000E-03    47.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.425        17.167        .11364E-03   -1.5003    
   9  Prefactor     .10000E-03    13.713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.9185        .12501E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .71482        1.3613        .12223E-02   -1.5539    
  12  norm          .32837        1.6113        .14336E-02   -1.5593    
  13  Prefactor     .10002E-03    98.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.748        16.639        .10431E-03   -1.4940    
  15  norm          .10000E-03    2.0458        .90115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.8675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.278        17.788        .96368E-04   -1.4876    
  18  norm          1.6202        1.1537        .45220E-04   -1.5453    
  19  Prefactor     .10000E-03    47.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          5.5902        6.9688        .16993E-03   -1.5235    
  23  Prefactor     .10000E-03    73.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4147        .31119        .24168E-03   -.80204    
  25  Prefactor     .73660        .26169        .28561E-03   -1.0211    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64611e-08
Minuit parameter uncertainties:
  1  0.000950639
  2  88.8205
  3  0.26383
  4  10.938
  5  0.0101324
  6  4.99938
  7  0.000250686
  8  17.1734
  9  2.31637e-05
  10  5.79886e-07
  11  1.36139
  12  1.45464
  13  0.00307478
  14  16.6439
  15  6.2292e-07
  16  1.58037e-06
  17  17.7931
  18  1.15373
  19  0.000298235
  20  0.00010135
  21  9.35032e-05
  22  6.96977
  23  0.000735147
  24  0.311604
  25  0.262133
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.284e-01  1.455e+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:  7.366e-01  2.621e-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.415e+00  3.116e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438056/likelihoodResults_545702401_545961601_4FGL_J2243.4-2544_daily_bin1182.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) = 4183.59300928
delta logL = 0.00184799796261

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4183.59284969
delta logL = 0.00200758439314

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .35490       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8788       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4150       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73634       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4183.593     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      262 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35443        1.8038        .14772E-02    .17541E-03
   2  alpha         1.8776        1.7511        .41798E-01    .45267E-05
   3  Normalizat    1.4150        .27938        .24166E-03    .12802E-03
   4  Prefactor     .73635        .24853        .28566E-03    .64155E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.354432
  alpha      = 1.87762
  Normalizat = 1.41504
  Prefactor  = 0.736355
 **********
 **   18 **HESSE 
 **********

 FCN=   4183.593     FROM HESSE     STATUS=OK            27 CALLS      289 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35443        1.6629        .59089E-04   -1.5589    
   2  alpha         1.8776        1.6994        .16719E-02   -.25160    
   3  Normalizat    1.4150        .27961        .48332E-04   -.80195    
   4  Prefactor     .73635        .24872        .11426E-04   -1.0212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70661e-11
Minuit parameter uncertainties:
  1  1.53526
  2  1.8838
  3  0.279914
  4  0.249096
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438056': 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) = 4183.59284941
delta logL = 0.00200787045105

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.544e-01  1.535e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.878e+00  1.884e+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:  7.364e-01  2.491e-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.415e+00  2.799e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/438056/cmap_HighResolution_545702401_545961601_4FGL_J2243.4-2544_daily_bin1182.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.54e-05', job_status='DONE', photon_flux_upper_limit='5.56e-08', time_completed='2021-09-28 18:52:12.451963', job_id='438056', GAL2='0.74', fit_tolerance='1e-08', EG2='1.42', EG='1.41', time_epoch_completed='1632880332.45', return_code2='0', ts='0.06', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.01e-03', ts2='0.07', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1182' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:52:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 438056: <4FGL_J2243.4-2544_daily_bin1182> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1182 340.865 -25.7363 545702401 545961601 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 :                                   540.17 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             312.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

