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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1639
RA = 340.957, Dec = -25.1701
tmin = 664156801, tmax = 664416001
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='201025', job_status='RUN', time_executed='2022-01-21 00:36:12.159983', time_epoch_executed='1642754172.16' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201025

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201025/ft1_4FGL_J2243.8-2510_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201025/ft1_4FGL_J2243.8-2510_daily_bin1639.fits outfile=/scratch/kocevski/201025/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1639.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=664156801.0 tmax=664416001.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 4.02
user 3.76
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.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/201025/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1639.fits evtable="EVENTS" outfile="/scratch/kocevski/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.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.52
user 0.34
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/201025/ltcube_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.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/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits
.....................!
real 14.50
user 14.09
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/201025/ltcube_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.fits outfile=/scratch/kocevski/201025/expmap_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.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/201025/ltcube_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.fits
.....................!
real 194.88
user 188.08
sys 6.40

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 164 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.8-2510 @ 340.957 -25.1701

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.fits scfile=/scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits outfile=/scratch/kocevski/201025/cmap_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.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.957 yref=-25.1701 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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.fits scfile=/scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits outfile=/scratch/kocevski/201025/cmap_HighResolution_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.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.957 yref=-25.1701 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.58
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/201025/Model_4FGL_J2243.8-2510_daily_bin1639.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/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.fits.....................!
real 38.24
user 36.83
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.fits', '/scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits', expMap='/scratch/kocevski/201025/expmap_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.fits', expCube='/scratch/kocevski/201025/ltcube_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/201025/Model_4FGL_J2243.8-2510_daily_bin1639.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.8-2510'

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  7.852e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/201025/ft1_filtered_4FGL_J2243.8-2510_daily_bin1639.fits
Spacecraft file(s): /scratch/kocevski/201025/ft2_4FGL_J2243.8-2510_daily_bin1639.fits
Exposure map: /scratch/kocevski/201025/expmap_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.fits
Exposure cube: /scratch/kocevski/201025/ltcube_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/201025/Model_4FGL_J2243.8-2510_daily_bin1639.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) = 4087.35359136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .97110       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6366       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15105       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.862       1.0000         .10000E-03   10000.    
     7 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.0912       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.1004       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33762       1.0000         .10000E-03   10000.    
    18 'Prefactor '    80.656       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.8900       1.0000         .10000E-03   10000.    
    22 'Prefactor '    48.307       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1294       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .87395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4087.315     FROM MIGRAD    STATUS=CONVERGED    583 CALLS     2752 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.311        .54657E-07** at limit **
   2  norm          .97115        .43317        .17660E-07   -.72975E-03
   3  Prefactor     3.6359        8.1349        .68603E-06    .83010E-05
   4  Prefactor     .10000E-03    9.5278       -.14551E-06** at limit **
   5  Prefactor     .20595E-02    9.8139        .33616E-05** at limit **
   6  Prefactor     31.023        78.410        .14642E-05    .99522E-05
   7  norm          .10000E-03    147.46       -.67211E-05** at limit **
   8  Prefactor     .10000E-03    8.7264        .38143E-07** at limit **
   9  Prefactor     .10000E-03    6.0400       -.19586E-05** at limit **
  10  norm          1.0917        1.1784        .39919E-06    .51681E-03
  11  norm          4.9387        4.6342       -.19037E-05   -.15063E-02
  12  Prefactor     2.7367        562.25        .16695E-04   -.42196E-04
  13  Prefactor     .10000E-03    12.486        .14874E-06** at limit **
  14  norm          .10000E-03    1.4185       -.21586E-06** at limit **
  15  Prefactor     .10000E-03    5.7184       -.29571E-06** at limit **
  16  Prefactor     .10000E-03    4.7842       -.11137E-05** at limit **
  17  norm          .33717        .47756       -.27450E-06   -.18722E-02
  18  Prefactor     80.640        95.365       -.31318E-06   -.27002E-04
  19  Prefactor     .10000E-03    5.3257        .10834E-06** at limit **
  20  Prefactor     .10000E-03    3.5055       -.33997E-06** at limit **
  21  norm          8.8863        5.8310       -.31300E-08   -.78091E-04
  22  Prefactor     48.270        46.256        .15793E-06    .33944E-04
  23  Normalizat    1.1305        .26612        .77771E-05   -.80766E-03
  24  Prefactor     .87340        .23701       -.11059E-04   -.50253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.971152
  Prefactor  = 3.63593
  Prefactor  = 0.0001
  Prefactor  = 0.00205951
  Prefactor  = 31.0235
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09171
  norm       = 4.93872
  Prefactor  = 2.73666
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.337172
  Prefactor  = 80.6401
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.88634
  Prefactor  = 48.2697
  Normalizat = 1.13051
  Prefactor  = 0.873402
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.315     FROM HESSE     STATUS=OK           403 CALLS     3155 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .97115        .43316        .27325E-04   -1.5511    
   3  Prefactor     3.6359        8.1196        .21185E-03   -1.5327    
   4  Prefactor     .10000E-03    9.5418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .20595E-02    20.039        .56513E-01   -1.5717    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     31.023        78.085        .72123E-04   -1.4593    
   7  norm          .10000E-03    150.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    8.7273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.0674        .15369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.0917        1.1442        .68307E-03   -1.5499    
  11  norm          4.9387        4.8850        .94134E-04   -1.5263    
  12  Prefactor     2.7367        636.00        .23030E-02   -1.5377    
  13  Prefactor     .10000E-03    12.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4190        .74312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.7204        .14924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    4.8022        .13596E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33717        .43704        .50879E-03   -1.5592    
  18  Prefactor     80.640        95.415        .44721E-04   -1.3910    
  19  Prefactor     .10000E-03    5.3323        .14410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5072        .11687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.8863        5.8364        .11872E-03   -1.5112    
  22  Prefactor     48.270        46.278        .28847E-03   -1.4317    
  23  Normalizat    1.1305        .29547        .25064E-03   -.88778    
  24  Prefactor     .87340        .25398        .24862E-03   -.97077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2323e-09
Minuit parameter uncertainties:
  1  2.55195e-06
  2  0.43316
  3  8.12205
  4  3.94003e-06
  5  0.39645
  6  78.3438
  7  0.000638526
  8  3.5691e-07
  9  0.000101603
  10  1.14422
  11  4.88537
  12  84.3602
  13  4.49507e-05
  14  5.32484e-07
  15  2.28235e-06
  16  2.49042e-05
  17  0.437043
  18  95.5971
  19  1.00933e-05
  20  7.55307e-06
  21  5.83679
  22  46.3127
  23  0.295903
  24  0.254319
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  2.737e+00  8.436e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  8.734e-01  2.543e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.131e+00  2.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201025/likelihoodResults_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.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) = 4087.31451832
delta logL = 2.82563496512e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4087.31009769
delta logL = 0.00444888167931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .62454       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3401       1.0000          .0000       10.000    
     3 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87759       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4087.310     FROM MIGRAD    STATUS=CONVERGED     72 CALLS      366 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63339        16.757        .69077E-01    .28650E-03
   2  Index         4.3351        1.6722        .50000        .16118E-05
   3  Normalizat    1.1242        .11760E-01    .56817E-01   -.27983E-03
   4  Prefactor     .87736        .10448E-01    .44719E-01   -.27170E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.633388
  Index      = 4.33515
  Normalizat = 1.12423
  Prefactor  = 0.877357
 **********
 **   18 **HESSE 
 **********

 FCN=   4087.310     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      397 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63339        2243.6        .24699E-02   -1.5549    
   2  Index         4.3351        7.1069        .10380E-01   -.13337    
   3  Normalizat    1.1242        .14164        .25125E-03   -.88978    
   4  Prefactor     .87736        .11878        .24814E-03   -.96937    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74647e-06
Minuit parameter uncertainties:
  1  78.5392
  2  70.4915
  3  0.141691
  4  0.118815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201025': 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) = 4087.31009471
delta logL = 0.00445186350044

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  6.334e-01  7.854e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  4.335e+00  7.049e+01  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  8.774e-01  1.188e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.124e+00  1.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 340.957 -25.170

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/201025/cmap_HighResolution_664156801_664416001_4FGL_J2243.8-2510_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', job_status='DONE', photon_flux_upper_limit='1.51e-07', time_completed='2022-01-21 00:45:28.740000', job_id='201025', GAL2='0.88', fit_tolerance='1e-08', EG2='1.12', EG='1.13', time_epoch_completed='1642754728.74', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.45e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1639' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:45:28 PST 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0119>
Subject: Job 201025: <4FGL_J2243.8-2510_daily_bin1639> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1639> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jan 21 00:35:53 2022
Job was executed on host(s) <bullet0119>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:35:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:35:55 2022
Terminated at Fri Jan 21 00:45:29 2022
Results reported at Fri Jan 21 00:45:29 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1639 340.957 -25.1701 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.8-2510 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   559.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             341.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   574 sec.
    Turnaround time :                            576 sec.

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

