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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1452
RA = 340.865, Dec = -25.7363
tmin = 615686401, tmax = 615945601
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='438446', job_status='RUN', time_executed='2021-09-28 18:42:09.715475', time_epoch_executed='1632879729.72' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1452'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438446

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438446/ft1_4FGL_J2243.4-2544_daily_bin1452.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438446/ft2_4FGL_J2243.4-2544_daily_bin1452.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438446/ft1_4FGL_J2243.4-2544_daily_bin1452.fits outfile=/scratch/kocevski/438446/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1452.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=615686401.0 tmax=615945601.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.52
user 3.24
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438446/ft1_filtered_4FGL_J2243.4-2544_daily_bin1452.fits" evtable="EVENTS" scfile=/scratch/kocevski/438446/ft2_4FGL_J2243.4-2544_daily_bin1452.fits sctable="SC_DATA" outfile=/scratch/kocevski/438446/ltcube_615686401_615945601_4FGL_J2243.4-2544_daily_bin1452.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/438446/ft2_4FGL_J2243.4-2544_daily_bin1452.fits
.....................!
real 11.94
user 11.61
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438446/ft1_filtered_4FGL_J2243.4-2544_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/438446/ft2_4FGL_J2243.4-2544_daily_bin1452.fits sctable="SC_DATA" expcube=/scratch/kocevski/438446/ltcube_615686401_615945601_4FGL_J2243.4-2544_daily_bin1452.fits outfile=/scratch/kocevski/438446/expmap_615686401_615945601_4FGL_J2243.4-2544_daily_bin1452.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/438446/ltcube_615686401_615945601_4FGL_J2243.4-2544_daily_bin1452.fits
.....................!
real 191.09
user 185.80
sys 4.96

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/438446/ft1_filtered_4FGL_J2243.4-2544_daily_bin1452.fits scfile=/scratch/kocevski/438446/ft2_4FGL_J2243.4-2544_daily_bin1452.fits outfile=/scratch/kocevski/438446/cmap_615686401_615945601_4FGL_J2243.4-2544_daily_bin1452.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.60
user 0.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438446/ft1_filtered_4FGL_J2243.4-2544_daily_bin1452.fits scfile=/scratch/kocevski/438446/ft2_4FGL_J2243.4-2544_daily_bin1452.fits outfile=/scratch/kocevski/438446/cmap_HighResolution_615686401_615945601_4FGL_J2243.4-2544_daily_bin1452.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.59
user 0.43
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438446/ft1_filtered_4FGL_J2243.4-2544_daily_bin1452.fits evtable="EVENTS" scfile=/scratch/kocevski/438446/ft2_4FGL_J2243.4-2544_daily_bin1452.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438446/Model_4FGL_J2243.4-2544_daily_bin1452.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/438446/ft1_filtered_4FGL_J2243.4-2544_daily_bin1452.fits.....................!
real 49.70
user 48.41
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .52352       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.0300       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9986       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .34900E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    17.953       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      '    2.0950       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.599       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4107       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.3123       1.0000         .10000E-03   10000.    
    18 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2812       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12422E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.839       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3522       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67002       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=   6194.033     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2510 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.706       -.15276E-06** at limit **
   2  Prefactor     .10000E-03    32.289       -.16721E-06** at limit **
   3  norm          .52354        .26293        .23532E-08    .63608E-04
   4  Prefactor     2.0292        11.678        .87003E-06    .77230E-04
   5  Prefactor     9.8091        12.494        .10649E-06   -.47761E-05
   6  Prefactor     4.0003        4.8712        .22018E-06    .17820E-03
   7  Prefactor     .10007E-03    540.50       -.64897E-05** at limit **
   8  norm          17.950        19.954        .32101E-07    .13025E-04
   9  Prefactor     .10000E-03    4.9169        .10338E-07** at limit **
  10  Prefactor     .10000E-03    5.0459        .64658E-07** at limit **
  11  norm          2.0941        .99087       -.15681E-07   -.27671E-03
  12  norm          .10000E-03    .84521        .44182E-07** at limit **
  13  Prefactor     10.631        53.122        .13422E-05   -.24993E-05
  14  Prefactor     .10000E-03    8.3518        .20464E-06** at limit **
  15  norm          1.4170        4.3214        .11802E-05    .10675E-03
  16  Prefactor     .10000E-03    6.9978        .20010E-06** at limit **
  17  Prefactor     6.2990        9.1303       -.75538E-06   -.14342E-03
  18  norm          .10000E-03    .14610        .38393E-06** at limit **
  19  Prefactor     .10000E-03    45.760        .17912E-06** at limit **
  20  Prefactor     2.2802        4.7479        .21656E-05   -.13683E-02
  21  Prefactor     .10000E-03    10.555        .19715E-05** at limit **
  22  norm          .10000E-03    1.5639       -.30294E-06** at limit **
  23  Prefactor     14.851        33.845       -.10669E-05   -.22141E-03
  24  Normalizat    1.3515        .18459       -.18019E-05   -.40148E-03
  25  Prefactor     .67052        .15966        .14518E-05   -.15938E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.523538
  Prefactor  = 2.02915
  Prefactor  = 9.80909
  Prefactor  = 4.0003
  Prefactor  = 0.000100068
  norm       = 17.9501
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.09408
  norm       = 0.0001
  Prefactor  = 10.6313
  Prefactor  = 0.0001
  norm       = 1.417
  Prefactor  = 0.0001
  Prefactor  = 6.29897
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.28024
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 14.8505
  Normalizat = 1.35153
  Prefactor  = 0.670524
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.033     FROM HESSE     STATUS=OK           425 CALLS     2935 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .52354        .26398        .27852E-04   -1.5563    
   4  Prefactor     2.0292        11.695        .29036E-03   -1.5423    
   5  Prefactor     9.8091        12.486        .12797E-03   -1.5081    
   6  Prefactor     4.0003        4.8748        .18611E-03   -1.5308    
   7  Prefactor     .10007E-03    561.67        .39317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.950        19.938        .94527E-04   -1.4860    
   9  Prefactor     .10000E-03    4.9200        .17044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.0608        .17256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0941        .98878        .52025E-04   -1.5419    
  12  norm          .10000E-03    .84636        .70429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.631        52.925        .12306E-03   -1.5056    
  14  Prefactor     .10000E-03    8.4607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4170        4.2336        .22929E-03   -1.5470    
  16  Prefactor     .10000E-03    7.0003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.2990        9.2683        .15976E-03   -1.5206    
  18  norm          .10000E-03    .16012        .60154E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    45.874        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2802        5.6592        .13592E-02   -1.5406    
  21  Prefactor     .10000E-03    11.222        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.5801        .96022E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.851        34.357        .10397E-03   -1.4937    
  24  Normalizat    1.3515        .22244        .21526E-03   -.82041    
  25  Prefactor     .67052        .19230        .26846E-03   -1.0469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.20056e-09
Minuit parameter uncertainties:
  1  5.72943e-05
  2  0.000103322
  3  0.263982
  4  9.7457
  5  12.4891
  6  4.87529
  7  0.0124895
  8  19.9452
  9  2.10439e-06
  10  7.51133e-06
  11  0.988792
  12  1.51278e-06
  13  47.5081
  14  3.36484e-05
  15  4.23446
  16  1.92583e-05
  17  9.27043
  18  7.94373e-06
  19  0.000137587
  20  5.66052
  21  0.00035716
  22  1.8148e-05
  23  34.4026
  24  0.222601
  25  0.192495
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.513e-06  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:  6.705e-01  1.925e-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.352e+00  2.226e-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: 4.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438446/likelihoodResults_615686401_615945601_4FGL_J2243.4-2544_daily_bin1452.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) = 6194.03823245
delta logL = -0.0054431699964

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6194.03278935
delta logL = -7.21847754903e-08

Fit tolerance = 1e-08

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

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

 FCN=   6194.033     FROM MIGRAD    STATUS=FAILED       111 CALLS      259 TOTAL
                     EDM=   .18E+00  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    5426.2         .0000    ** at limit **
   2  alpha         2.4010        1.6228         .0000       -.13807E-03
   3  Normalizat    1.3515        9.2932         .0000        .14780E-03
   4  Prefactor     .67052        8.9160         .0000        .95951E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6194.033     FROM SIMPLEX   STATUS=UNCHANGED    221 CALLS      480 TOTAL
                     EDM=   .92E-05  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5426.2        .16166E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4010        1.6228        .34133E-08   -.39629E-01
   3  Normalizat    1.3515        9.2932        .35846E-07   -.82041    
   4  Prefactor     .67052        8.9160        .25860E-07   -1.0469    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6193.503     FROM MIGRAD    STATUS=CONVERGED    216 CALLS      696 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .33980E-01    .84869        .31496E-02    .32780E-02
   2  alpha         4.7319        2.6339        .50000       -.39536E-05
   3  Normalizat    1.2765        .54929E-01    .43053E-04   -.13510E-03
   4  Prefactor     .71180        .46767E-01    .10739E-03   -.71990E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0339805
  alpha      = 4.73186
  Normalizat = 1.27655
  Prefactor  = 0.711801
 **********
 **   18 **HESSE 
 **********

 FCN=   6193.503     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      725 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33980E-01    1.6463        .14157E-04   -1.5671    
   2  alpha         4.7319        2.5872        .44920E-01    1.1034    
   3  Normalizat    1.2765        .16372        .86105E-05   -.84269    
   4  Prefactor     .71180        .14545        .42954E-05   -1.0307    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.66607e-11
Minuit parameter uncertainties:
  1  0.47236
  2  6.24154
  3  0.163791
  4  0.145529
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438446': 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): 102
logL (Free Index) = 6193.50310518
delta logL = 0.529684095629

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  3.398e-02  4.724e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  4.732e+00  6.242e+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.118e-01  1.455e-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.277e+00  1.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 340.865 -25.736
Photon Index (Free Index): 4.73 +/- 6.24
Photon Flux (Free Index): 5.95e-08 +/- 6.18e-08
Energy Flux (Free Index): 8.55e-06 +/- 1.27e-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/438446/cmap_HighResolution_615686401_615945601_4FGL_J2243.4-2544_daily_bin1452.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-05', comment='SUCCESS', energy_flux2='8.55e-06', dlogl='5.30e-01', photon_flux2='5.95e-08', job_status='DONE', time_completed='2021-09-28 18:53:22.178770', photon_index_error2='6.24', photon_index2='4.73', ts='-0.00', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='4.02e-08', energy_flux_error2='1.27e-05', EG='1.35', time_epoch_completed='1632880402.18', return_code='0', job_id='438446', GAL2='0.71', EG2='1.28', return_code2='102', photon_flux_error2='6.18e-08', ts2='1.14', photon_index='2.00' WHERE bin_id='1452' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:53:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 438446: <4FGL_J2243.4-2544_daily_bin1452> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1452 340.865 -25.7363 615686401 615945601 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 :                                   652.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

