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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin931
RA = 340.957, Dec = -25.1701
tmin = 480643201, tmax = 480902401
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='443493', job_status='RUN', time_executed='2021-09-28 18:58:30.820625', time_epoch_executed='1632880710.82' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443493/ft1_4FGL_J2243.8-2510_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443493/ft1_4FGL_J2243.8-2510_daily_bin931.fits outfile=/scratch/kocevski/443493/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin931.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=480643201.0 tmax=480902401.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.65
user 3.42
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.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/443493/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin931.fits evtable="EVENTS" outfile="/scratch/kocevski/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/443493/ltcube_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.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/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits
.....................!
real 11.70
user 11.32
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/443493/ltcube_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.fits outfile=/scratch/kocevski/443493/expmap_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.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/443493/ltcube_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.fits
.....................!
real 191.46
user 186.24
sys 4.91

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/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits scfile=/scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits outfile=/scratch/kocevski/443493/cmap_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits scfile=/scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits outfile=/scratch/kocevski/443493/cmap_HighResolution_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443493/Model_4FGL_J2243.8-2510_daily_bin931.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/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits.....................!
real 49.98
user 48.67
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits', '/scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits', expMap='/scratch/kocevski/443493/expmap_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.fits', expCube='/scratch/kocevski/443493/ltcube_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/443493/Model_4FGL_J2243.8-2510_daily_bin931.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/443493/ft1_filtered_4FGL_J2243.8-2510_daily_bin931.fits
Spacecraft file(s): /scratch/kocevski/443493/ft2_4FGL_J2243.8-2510_daily_bin931.fits
Exposure map: /scratch/kocevski/443493/expmap_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.fits
Exposure cube: /scratch/kocevski/443493/ltcube_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/443493/Model_4FGL_J2243.8-2510_daily_bin931.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) = 5893.01748316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.2556       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.474       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    68.301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.322       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1422       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .58710E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4934       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4833       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.169       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .25167E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.028       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3095       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75036       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=   5892.946     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2843 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.638        .77783E-07** at limit **
   2  norm          1.2555        .38746        .85674E-08    .31291E-05
   3  Prefactor     .10000E-03    3.5802        .34203E-07** at limit **
   4  Prefactor     21.472        17.310        .20156E-06   -.22028E-05
   5  Prefactor     3.2335        6.2430        .14672E-05    .11800E-03
   6  Prefactor     .10000E-03    20.489        .46143E-07** at limit **
   7  norm          68.297        28.581       -.20291E-06    .27403E-04
   8  Prefactor     .10000E-03    6.4735       -.19102E-07** at limit **
   9  Prefactor     14.321        15.306        .43486E-07    .48677E-05
  10  norm          .10000E-03    .27811        .47097E-07** at limit **
  11  norm          3.1423        2.2596       -.10249E-09    .57856E-05
  12  Prefactor     .10000E-03    16.901        .25816E-06** at limit **
  13  Prefactor     .10084E-03    10.079       -.32883E-05** at limit **
  14  norm          .10000E-03    1.4035        .32442E-06** at limit **
  15  Prefactor     .10000E-03    6.2851        .78445E-06** at limit **
  16  Prefactor     2.4942        13.101        .76188E-05    .90194E-04
  17  norm          1.4829        .94521       -.65017E-06    .66104E-04
  18  Prefactor     27.822        96.165        .19409E-04   -.89923E-05
  19  Prefactor     .10000E-03    4.9518        .62827E-07** at limit **
  20  Prefactor     .10000E-03    6.0698        .97937E-06** at limit **
  21  norm          .10000E-03    2.2872       -.91584E-06** at limit **
  22  Prefactor     16.124        44.738        .10382E-04    .99134E-04
  23  Normalizat    1.3094        .20478        .13592E-06    .53445E-03
  24  Prefactor     .75050        .17139       -.14925E-05    .24781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.25551
  Prefactor  = 0.0001
  Prefactor  = 21.4716
  Prefactor  = 3.23355
  Prefactor  = 0.0001
  norm       = 68.2968
  Prefactor  = 0.0001
  Prefactor  = 14.3212
  norm       = 0.0001
  norm       = 3.14235
  Prefactor  = 0.0001
  Prefactor  = 0.000100843
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49416
  norm       = 1.48291
  Prefactor  = 27.8219
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.1244
  Normalizat = 1.30936
  Prefactor  = 0.750501
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.946     FROM HESSE     STATUS=OK           405 CALLS     3248 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2555        .38840        .25793E-04   -1.5484    
   3  Prefactor     .10000E-03    3.5918        .14184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     21.472        17.304        .86434E-04   -1.4781    
   5  Prefactor     3.2335        6.2864        .11260E-02   -1.5348    
   6  Prefactor     .10000E-03    20.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          68.297        28.583        .24284E-03   -1.4053    
   8  Prefactor     .10000E-03    6.4754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.321        15.354        .10584E-03   -1.4951    
  10  norm          .10000E-03    .28852        .79014E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1423        2.2573        .94166E-04   -1.5353    
  12  Prefactor     .10000E-03    16.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10084E-03    104.43        .43749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4087        .88803E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    6.3014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.4942        13.880        .12942E-02   -1.5392    
  17  norm          1.4829        .95993        .42401E-04   -1.5464    
  18  Prefactor     27.822        95.427        .37742E-03   -1.4653    
  19  Prefactor     .10000E-03    4.9630        .16683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.2459        .37954E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.124        46.516        .10004E-03   -1.4905    
  23  Normalizat    1.3094        .24316        .23640E-03   -.83287    
  24  Prefactor     .75050        .20488        .27031E-03   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.00733e-09
Minuit parameter uncertainties:
  1  1.00683e-05
  2  0.388405
  3  3.84088e-06
  4  17.3083
  5  6.28767
  6  1.04578e-05
  7  28.5885
  8  4.0065e-06
  9  15.3582
  10  9.51251e-07
  11  2.25738
  12  1.58337e-06
  13  0.0187974
  14  2.38238e-06
  15  6.64777e-06
  16  11.7717
  17  0.959941
  18  95.9569
  19  5.36445e-06
  20  9.92429e-06
  21  5.87533e-05
  22  46.621
  23  0.243369
  24  0.205089
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.583e-06  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:  7.505e-01  2.051e-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.309e+00  2.434e-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: 7.58e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443493/likelihoodResults_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.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): 102
logL (Free Index) = 5892.946524
delta logL = -0.000281628113044

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5892.68672236
delta logL = 0.25952001158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15553E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9998       1.0000          .0000       10.000    
     3 'Normalizat'    1.2676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77619       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5892.687     FROM MIGRAD    STATUS=CONVERGED    135 CALLS      388 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15595E-03    .28924E-03    .16750E-04** at limit **
   2  Index        10.0000        6.3277        .50000    ** at limit **
   3  Normalizat    1.2676        .23423        .23947E-03    .72731E-04
   4  Prefactor     .77636        .20553        .26625E-03    .69644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000155946
  Index      = 10
  Normalizat = 1.26763
  Prefactor  = 0.776356
 **********
 **   18 **HESSE 
 **********

 FCN=   5892.687     FROM HESSE     STATUS=OK            31 CALLS      419 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15595E-03    .27439E-03    .67000E-06   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.2719        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2676        .23455        .95787E-05   -.84538    
   4  Prefactor     .77636        .20579        .10650E-04   -1.0061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20149e-11
Minuit parameter uncertainties:
  1  0.0002478
  2  0.000203348
  3  0.234746
  4  0.205996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443493': 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) = 5892.68670975
delta logL = 0.259532619361

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.559e-04  2.478e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.000e+01  2.033e-04  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:  7.764e-01  2.060e-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.268e+00  2.347e-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/443493/cmap_HighResolution_480643201_480902401_4FGL_J2243.8-2510_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.58e-08', time_completed='2021-09-28 19:09:14.255292', job_id='443493', GAL2='0.78', fit_tolerance='1e-08', EG2='1.27', EG='1.31', time_epoch_completed='1632881354.26', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.60e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='931' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:09:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 443493: <4FGL_J2243.8-2510_daily_bin931> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin931> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:55:37 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:55:39 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:55:39 2021
Terminated at Tue Sep 28 19:09:15 2021
Results reported at Tue Sep 28 19:09:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin931 340.957 -25.1701 480643201 480902401 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 :                                   642.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            818 sec.

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

