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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1160
RA = 340.865, Dec = -25.7363
tmin = 540000001, tmax = 540259201
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='438023', job_status='RUN', time_executed='2021-09-28 18:41:38.338710', time_epoch_executed='1632879698.34' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438023

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438023/ft1_4FGL_J2243.4-2544_daily_bin1160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438023/ft2_4FGL_J2243.4-2544_daily_bin1160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438023/ft1_4FGL_J2243.4-2544_daily_bin1160.fits outfile=/scratch/kocevski/438023/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1160.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=540000001.0 tmax=540259201.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.58
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438023/ft2_4FGL_J2243.4-2544_daily_bin1160.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/438023/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1160.fits evtable="EVENTS" outfile="/scratch/kocevski/438023/ft1_filtered_4FGL_J2243.4-2544_daily_bin1160.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438023/ft1_filtered_4FGL_J2243.4-2544_daily_bin1160.fits" evtable="EVENTS" scfile=/scratch/kocevski/438023/ft2_4FGL_J2243.4-2544_daily_bin1160.fits sctable="SC_DATA" outfile=/scratch/kocevski/438023/ltcube_540000001_540259201_4FGL_J2243.4-2544_daily_bin1160.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/438023/ft2_4FGL_J2243.4-2544_daily_bin1160.fits
.....................!
real 11.75
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438023/ft1_filtered_4FGL_J2243.4-2544_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/438023/ft2_4FGL_J2243.4-2544_daily_bin1160.fits sctable="SC_DATA" expcube=/scratch/kocevski/438023/ltcube_540000001_540259201_4FGL_J2243.4-2544_daily_bin1160.fits outfile=/scratch/kocevski/438023/expmap_540000001_540259201_4FGL_J2243.4-2544_daily_bin1160.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/438023/ltcube_540000001_540259201_4FGL_J2243.4-2544_daily_bin1160.fits
.....................!
real 189.52
user 185.37
sys 3.75

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/438023/ft1_filtered_4FGL_J2243.4-2544_daily_bin1160.fits scfile=/scratch/kocevski/438023/ft2_4FGL_J2243.4-2544_daily_bin1160.fits outfile=/scratch/kocevski/438023/cmap_540000001_540259201_4FGL_J2243.4-2544_daily_bin1160.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.865 yref=-25.7363 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438023/ft1_filtered_4FGL_J2243.4-2544_daily_bin1160.fits evtable="EVENTS" scfile=/scratch/kocevski/438023/ft2_4FGL_J2243.4-2544_daily_bin1160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438023/Model_4FGL_J2243.4-2544_daily_bin1160.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/438023/ft1_filtered_4FGL_J2243.4-2544_daily_bin1160.fits.....................!
real 48.24
user 46.88
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    49.120       1.0000         .10000E-03   10000.    
     3 'norm      '    .61577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1907       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.2282       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.844       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.5612       1.0000         .10000E-03   10000.    
    12 'norm      '    .10501E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11284E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10399E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.328       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.190       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4272       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.4481       1.0000         .10000E-03   10000.    
    22 'norm      '    3.5187       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.7351       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0008       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1156       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=   5909.878     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2933 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.797       -.39943E-05** at limit **
   2  Prefactor     49.123        55.374        .31788E-05   -.32967E-04
   3  norm          .61575        .27760       -.54014E-08    .95633E-04
   4  Prefactor     2.1878        9.2927       -.11757E-05   -.29298E-03
   5  Prefactor     .10000E-03    9.3361        .17307E-06** at limit **
   6  Prefactor     7.2286        9.6847       -.38330E-06   -.11616E-03
   7  Prefactor     .10000E-03    20.738       -.10533E-05** at limit **
   8  norm          .10000E-03    15.247        .61582E-05** at limit **
   9  Prefactor     13.842        20.548       -.56812E-06   -.27450E-03
  10  Prefactor     .10000E-03    5.4418       -.53080E-08** at limit **
  11  norm          2.5611        1.1715        .19465E-08   -.16859E-03
  12  norm          .10000E-03    1.4877        .31507E-06** at limit **
  13  Prefactor     .10001E-03    111.03       -.11035E-04** at limit **
  14  Prefactor     .10000E-03    20.680        .78176E-06** at limit **
  15  norm          .10004E-03    3.2163        .29178E-05** at limit **
  16  Prefactor     14.349        21.936       -.77750E-05   -.39407E-03
  17  Prefactor     20.211        17.211       -.61044E-05   -.12065E-02
  18  norm          1.4277        1.0380        .55785E-06   -.54677E-02
  19  Prefactor     .10000E-03    19.249       -.13626E-05** at limit **
  20  Prefactor     .10000E-03    4.9523       -.26571E-07** at limit **
  21  Prefactor     5.4295        17.098        .15586E-04   -.45870E-03
  22  norm          3.5187        4.3509       -.25485E-06   -.41924E-03
  23  Prefactor     7.7358        29.856        .54344E-06   -.22099E-04
  24  Normalizat    1.0006        .20629        .18139E-05   -.61154E-03
  25  Prefactor     1.1157        .18776       -.15341E-05   -.40909E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 49.1231
  norm       = 0.615753
  Prefactor  = 2.18777
  Prefactor  = 0.0001
  Prefactor  = 7.22864
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 13.8423
  Prefactor  = 0.0001
  norm       = 2.56115
  norm       = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 0.000100042
  Prefactor  = 14.3485
  Prefactor  = 20.2106
  norm       = 1.4277
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.42952
  norm       = 3.51873
  Prefactor  = 7.73581
  Normalizat = 1.0006
  Prefactor  = 1.11574
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.878     FROM HESSE     STATUS=OK           423 CALLS     3356 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     49.123        55.338        .57217E-04   -1.4305    
   3  norm          .61575        .27932        .26419E-04   -1.5551    
   4  Prefactor     2.1878        9.3516        .27806E-03   -1.5412    
   5  Prefactor     .10000E-03    9.3637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.2286        9.7008        .14919E-03   -1.5170    
   7  Prefactor     .10000E-03    20.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    15.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.842        20.560        .53826E-03   -1.4964    
  10  Prefactor     .10000E-03    5.4631        .17511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.5611        1.1700        .54402E-04   -1.5388    
  12  norm          .10000E-03    2.4932        .18085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    111.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.348        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10004E-03    20.527        .24831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.349        21.918        .10581E-03   -1.4950    
  17  Prefactor     20.211        17.387        .89138E-04   -1.4809    
  18  norm          1.4277        1.0356        .48804E-04   -1.5469    
  19  Prefactor     .10000E-03    19.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9629        .16708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.4295        16.778        .17215E-03   -1.5242    
  22  norm          3.5187        4.3440        .17094E-03   -1.5333    
  23  Prefactor     7.7358        29.822        .14418E-03   -1.5152    
  24  Normalizat    1.0006        .25173        .26966E-03   -.93010    
  25  Prefactor     1.1157        .22905        .24057E-03   -.88965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74688e-09
Minuit parameter uncertainties:
  1  0.000132514
  2  55.3955
  3  0.279318
  4  9.04855
  5  4.50041e-06
  6  9.70289
  7  5.51138e-05
  8  0.000260663
  9  20.5705
  10  7.15142e-06
  11  1.17002
  12  4.92578e-05
  13  0.00215396
  14  7.59144e-05
  15  0.00186398
  16  21.9298
  17  17.3909
  18  1.03558
  19  7.01406e-05
  20  3.93684e-07
  21  16.7923
  22  4.3444
  23  29.8798
  24  0.252028
  25  0.229254
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  4.926e-05  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.116e+00  2.293e-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.001e+00  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/438023/likelihoodResults_540000001_540259201_4FGL_J2243.4-2544_daily_bin1160.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) = 5909.87960561
delta logL = -0.00191170561175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5909.87769377
delta logL = 1.29378349811e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10964E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0475       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1158       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5909.492     FROM MIGRAD    STATUS=FAILED       181 CALLS      345 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15541E-01    .89599        .18780E-02    .88054E-02
   2  alpha         5.0000        2.9602        .50000    ** at limit **
   3  Normalizat    .93625        .93696E-01    .26966E-02   -.10430E-04
   4  Prefactor     1.1537        .81704E-01    .24057E-03   -.39318E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5909.492     FROM SIMPLEX   STATUS=UNCHANGED    128 CALLS      473 TOTAL
                     EDM=   .17E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15541E-01    .89599        .70173E-06    .88054E-02
   2  alpha         5.0000        2.9602        .17464E-01** at limit **
   3  Normalizat    .93625        .93696E-01    .56982E-06   -.10430E-04
   4  Prefactor     1.1537        .81704E-01    .13576E-06   -.39318E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5909.492     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      510 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15541E-01    .21324E-01    .11231E-04    .69441E-03
   2  alpha         5.0000        3.3487        .50000    ** at limit **
   3  Normalizat    .93625        .24818        .10786E-03   -.12648E-04
   4  Prefactor     1.1537        .22620        .96228E-05   -.39460E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0155412
  alpha      = 5
  Normalizat = 0.936247
  Prefactor  = 1.1537
 **********
 **   18 **HESSE 
 **********

 FCN=   5909.492     FROM HESSE     STATUS=OK            29 CALLS      539 TOTAL
                     EDM=   .66E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15541E-01    .21245E-01    .44924E-06   -1.5683    
   2  alpha         5.0000        3.3435        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .93625        .24841        .43146E-05   -.95198    
   4  Prefactor     1.1537        .22640        .19246E-05   -.87768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55092e-12
Minuit parameter uncertainties:
  1  0.0212454
  2  2.43899e-05
  3  0.248714
  4  0.226592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438023': 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) = 5909.49155482
delta logL = 0.386139079646

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.554e-02  2.125e-02  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  5.000e+00  2.439e-05  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.154e+00  2.266e-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:  9.362e-01  2.487e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/438023/cmap_HighResolution_540000001_540259201_4FGL_J2243.4-2544_daily_bin1160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', job_status='DONE', photon_flux_upper_limit='5.63e-08', time_completed='2021-09-28 18:52:34.095213', job_id='438023', GAL2='1.15', fit_tolerance='1e-08', EG2='0.94', EG='1.00', time_epoch_completed='1632880354.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='3.86e-01', ts2='0.84', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1160' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:52:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 438023: <4FGL_J2243.4-2544_daily_bin1160> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1160> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:19 2021
Job was executed on host(s) <bullet0278>, 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:34 2021
Results reported at Tue Sep 28 18:52:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1160 340.865 -25.7363 540000001 540259201 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 :                                   653.01 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             272.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            735 sec.

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

