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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin899
RA = 340.957, Dec = -25.1701
tmin = 472348801, tmax = 472608001
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='443447', job_status='RUN', time_executed='2021-09-28 18:55:50.768670', time_epoch_executed='1632880550.77' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='899'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443447

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443447/ft1_4FGL_J2243.8-2510_daily_bin899.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443447/ft2_4FGL_J2243.8-2510_daily_bin899.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443447/ft1_4FGL_J2243.8-2510_daily_bin899.fits outfile=/scratch/kocevski/443447/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin899.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=472348801.0 tmax=472608001.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.85
user 3.58
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443447/ft2_4FGL_J2243.8-2510_daily_bin899.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/443447/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin899.fits evtable="EVENTS" outfile="/scratch/kocevski/443447/ft1_filtered_4FGL_J2243.8-2510_daily_bin899.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443447/ft1_filtered_4FGL_J2243.8-2510_daily_bin899.fits" evtable="EVENTS" scfile=/scratch/kocevski/443447/ft2_4FGL_J2243.8-2510_daily_bin899.fits sctable="SC_DATA" outfile=/scratch/kocevski/443447/ltcube_472348801_472608001_4FGL_J2243.8-2510_daily_bin899.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/443447/ft2_4FGL_J2243.8-2510_daily_bin899.fits
.....................!
real 12.12
user 11.71
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443447/ft1_filtered_4FGL_J2243.8-2510_daily_bin899.fits evtable="EVENTS" scfile=/scratch/kocevski/443447/ft2_4FGL_J2243.8-2510_daily_bin899.fits sctable="SC_DATA" expcube=/scratch/kocevski/443447/ltcube_472348801_472608001_4FGL_J2243.8-2510_daily_bin899.fits outfile=/scratch/kocevski/443447/expmap_472348801_472608001_4FGL_J2243.8-2510_daily_bin899.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/443447/ltcube_472348801_472608001_4FGL_J2243.8-2510_daily_bin899.fits
.....................!
real 192.27
user 186.86
sys 5.10

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/443447/ft1_filtered_4FGL_J2243.8-2510_daily_bin899.fits scfile=/scratch/kocevski/443447/ft2_4FGL_J2243.8-2510_daily_bin899.fits outfile=/scratch/kocevski/443447/cmap_472348801_472608001_4FGL_J2243.8-2510_daily_bin899.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443447/ft1_filtered_4FGL_J2243.8-2510_daily_bin899.fits scfile=/scratch/kocevski/443447/ft2_4FGL_J2243.8-2510_daily_bin899.fits outfile=/scratch/kocevski/443447/cmap_HighResolution_472348801_472608001_4FGL_J2243.8-2510_daily_bin899.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443447/ft1_filtered_4FGL_J2243.8-2510_daily_bin899.fits evtable="EVENTS" scfile=/scratch/kocevski/443447/ft2_4FGL_J2243.8-2510_daily_bin899.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443447/Model_4FGL_J2243.8-2510_daily_bin899.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/443447/ft1_filtered_4FGL_J2243.8-2510_daily_bin899.fits.....................!
real 39.16
user 37.89
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8654       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.731       1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.314       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.182       1.0000         .10000E-03   10000.    
     7 'norm      '    67.153       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.461       1.0000         .10000E-03   10000.    
    10 'norm      '    6.2568       1.0000         .10000E-03   10000.    
    11 'norm      '    1.9858       1.0000         .10000E-03   10000.    
    12 'Prefactor '    92.871       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.569       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .19236E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.633       1.0000         .10000E-03   10000.    
    21 'norm      '    9.8418       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .86072E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0539       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .53836       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=   4019.081     FROM MIGRAD    STATUS=CONVERGED    521 CALLS     2768 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.959        .11787E-06** at limit **
   2  norm          2.8655        .69569        .12167E-07   -.84394E-04
   3  Prefactor     .10000E-03    7.8940        .53058E-06** at limit **
   4  Prefactor     27.738        25.034        .29467E-06    .12007E-04
   5  Prefactor     31.314        15.902       -.49593E-07    .29083E-04
   6  Prefactor     30.145        77.774        .15261E-05   -.10355E-04
   7  norm          67.148        37.007        .72337E-06    .21201E-04
   8  Prefactor     .10000E-03    14.635        .60418E-07** at limit **
   9  Prefactor     22.456        22.843        .33480E-06    .33576E-04
  10  norm          6.2571        1.7836        .30697E-07    .14945E-04
  11  norm          1.9929        4.4624       -.25799E-05    .98474E-05
  12  Prefactor     92.676        99.346        .69803E-05    .78926E-05
  13  Prefactor     .10000E-03    12.264        .83901E-07** at limit **
  14  norm          .10000E-03    4.5073       -.44819E-06** at limit **
  15  Prefactor     22.563        18.306        .10840E-05    .18927E-03
  16  Prefactor     .10000E-03    7.1380       -.14735E-05** at limit **
  17  norm          .10000E-03    .33954       -.22606E-06** at limit **
  18  Prefactor     .10000E-03    1324.3       -.28754E-05** at limit **
  19  Prefactor     .10000E-03    7.5516        .23433E-06** at limit **
  20  Prefactor     11.633        10.879        .20745E-06    .17208E-03
  21  norm          9.8293        6.3294       -.12934E-05    .18281E-03
  22  Prefactor     .10005E-03    610.66       -.37129E-05** at limit **
  23  Normalizat    1.0538        .24668        .15356E-05    .37417E-04
  24  Prefactor     .53832        .20985       -.46225E-05    .14901E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.86548
  Prefactor  = 0.0001
  Prefactor  = 27.7379
  Prefactor  = 31.3141
  Prefactor  = 30.1449
  norm       = 67.1483
  Prefactor  = 0.0001
  Prefactor  = 22.4559
  norm       = 6.25715
  norm       = 1.99286
  Prefactor  = 92.6759
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.5633
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 11.6327
  norm       = 9.82931
  Prefactor  = 0.00010005
  Normalizat = 1.05378
  Prefactor  = 0.538316
 **********
 **   18 **HESSE 
 **********

 FCN=   4019.081     FROM HESSE     STATUS=OK           399 CALLS     3167 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8655        .69633        .25265E-04   -1.5369    
   3  Prefactor     .10000E-03    7.9454        .17395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.738        25.050        .76076E-04   -1.4654    
   5  Prefactor     31.314        15.929        .71602E-04   -1.4588    
   6  Prefactor     30.145        77.904        .72930E-04   -1.4609    
   7  norm          67.148        37.012        .24489E-03   -1.4067    
   8  Prefactor     .10000E-03    14.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     22.456        22.845        .84517E-04   -1.4760    
  10  norm          6.2571        1.7845        .42886E-04   -1.5208    
  11  norm          1.9929        4.4425        .15682E-03   -1.5426    
  12  Prefactor     92.676        99.529        .20851E-03   -1.3780    
  13  Prefactor     .10000E-03    12.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    4.5789        .13108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.563        18.161        .84314E-04   -1.4758    
  16  Prefactor     .10000E-03    7.1890        .16536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .41792        .69818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1338.2        .20264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.6384        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.633        10.817        .11745E-03   -1.5026    
  21  norm          9.8293        6.2625        .59899E-03   -1.5081    
  22  Prefactor     .10005E-03    614.95        .41716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0538        .28865        .25228E-03   -.91250    
  24  Prefactor     .53832        .23910        .29446E-03   -1.1025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53286e-10
Minuit parameter uncertainties:
  1  2.00747e-05
  2  0.696333
  3  5.90675e-06
  4  25.0592
  5  15.9315
  6  78.1685
  7  37.0252
  8  2.29927e-06
  9  22.8537
  10  1.78454
  11  4.44327
  12  99.7087
  13  1.2655e-05
  14  1.1419e-05
  15  18.1655
  16  4.3675e-06
  17  2.47758e-06
  18  0.00455449
  19  1.42499e-05
  20  10.819
  21  6.26292
  22  0.0111738
  23  0.289083
  24  0.239551
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  9.268e+01  9.971e+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:  5.383e-01  2.396e-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.054e+00  2.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 9.61e-08 +/- 1.03e-07
Energy Flux (Fixed Index): 2.30e-05 +/- 2.47e-05

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

Saving results to:
/scratch/kocevski/443447/likelihoodResults_472348801_472608001_4FGL_J2243.8-2510_daily_bin899.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) = 4018.91814729
delta logL = 0.1624374884

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4018.91706971
delta logL = 0.163515069963

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    120.43       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3658       1.0000          .0000       10.000    
     3 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52359       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=   4018.917     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      304 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     120.45        101.12        .18336E-03    .93934E-05
   2  Index         2.3658        .56570        .66416E-02    .52233E-05
   3  Normalizat    1.0735        .27627        .25040E-03    .72735E-04
   4  Prefactor     .52377        .23402        .29805E-03   -.23783E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 120.452
  Index      = 2.3658
  Normalizat = 1.07352
  Prefactor  = 0.523775
 **********
 **   18 **HESSE 
 **********

 FCN=   4018.917     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     120.45        100.23        .73343E-05   -1.3509    
   2  Index         2.3658        .56049        .26567E-03   -.55488    
   3  Normalizat    1.0735        .27656        .10016E-04   -.90607    
   4  Prefactor     .52377        .23421        .11922E-04   -1.1090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.75603e-11
Minuit parameter uncertainties:
  1  100.367
  2  0.562126
  3  0.276934
  4  0.234647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443447': 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) = 4018.91706935
delta logL = 0.163515429506

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.205e+02  1.004e+02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.366e+00  5.621e-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:  5.238e-01  2.346e-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.074e+00  2.769e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 2.37 +/- 0.56
Photon Flux (Free Index): 8.13e-08 +/- 7.61e-08
Energy Flux (Free Index): 2.79e-05 +/- 2.43e-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/443447/cmap_HighResolution_472348801_472608001_4FGL_J2243.8-2510_daily_bin899.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.01e-02', comment='SUCCESS', photon_flux='9.61e-08', energy_flux2='2.79e-05', photon_flux_error='1.03e-07', dlogl='1.64e-01', energy_flux='2.30e-05', photon_flux2='8.13e-08', job_status='DONE', time_completed='2021-09-28 19:04:39.126543', photon_index_error2='0.56', photon_index2='2.37', ts='2.10', fit_tolerance='1e-08', GAL='0.54', photon_index_error='0.00', photon_flux_upper_limit='2.55e-07', energy_flux_error2='2.43e-05', EG='1.05', time_epoch_completed='1632881079.13', return_code='0', job_id='443447', GAL2='0.52', EG2='1.07', return_code2='0', energy_flux_error='2.47e-05', photon_flux_error2='7.61e-08', ts2='2.44', photon_index='2.71' WHERE bin_id='899' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:04:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 443447: <4FGL_J2243.8-2510_daily_bin899> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin899 340.957 -25.1701 472348801 472608001 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 :                                   527.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   544 sec.
    Turnaround time :                            545 sec.

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

