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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1409
RA = 340.957, Dec = -25.1701
tmin = 604540801, tmax = 604800001
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='445276', job_status='RUN', time_executed='2021-09-28 19:01:29.975788', time_epoch_executed='1632880889.98' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1409'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445276/ft1_4FGL_J2243.8-2510_daily_bin1409.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445276/ft2_4FGL_J2243.8-2510_daily_bin1409.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445276/ft1_4FGL_J2243.8-2510_daily_bin1409.fits outfile=/scratch/kocevski/445276/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1409.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=604540801.0 tmax=604800001.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.61
user 3.40
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445276/ft2_4FGL_J2243.8-2510_daily_bin1409.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/445276/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1409.fits evtable="EVENTS" outfile="/scratch/kocevski/445276/ft1_filtered_4FGL_J2243.8-2510_daily_bin1409.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/445276/ft1_filtered_4FGL_J2243.8-2510_daily_bin1409.fits" evtable="EVENTS" scfile=/scratch/kocevski/445276/ft2_4FGL_J2243.8-2510_daily_bin1409.fits sctable="SC_DATA" outfile=/scratch/kocevski/445276/ltcube_604540801_604800001_4FGL_J2243.8-2510_daily_bin1409.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/445276/ft2_4FGL_J2243.8-2510_daily_bin1409.fits
.....................!
real 12.27
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445276/ft1_filtered_4FGL_J2243.8-2510_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/445276/ft2_4FGL_J2243.8-2510_daily_bin1409.fits sctable="SC_DATA" expcube=/scratch/kocevski/445276/ltcube_604540801_604800001_4FGL_J2243.8-2510_daily_bin1409.fits outfile=/scratch/kocevski/445276/expmap_604540801_604800001_4FGL_J2243.8-2510_daily_bin1409.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/445276/ltcube_604540801_604800001_4FGL_J2243.8-2510_daily_bin1409.fits
.....................!
real 190.25
user 185.66
sys 4.28

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/445276/ft1_filtered_4FGL_J2243.8-2510_daily_bin1409.fits scfile=/scratch/kocevski/445276/ft2_4FGL_J2243.8-2510_daily_bin1409.fits outfile=/scratch/kocevski/445276/cmap_604540801_604800001_4FGL_J2243.8-2510_daily_bin1409.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.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445276/ft1_filtered_4FGL_J2243.8-2510_daily_bin1409.fits evtable="EVENTS" scfile=/scratch/kocevski/445276/ft2_4FGL_J2243.8-2510_daily_bin1409.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445276/Model_4FGL_J2243.8-2510_daily_bin1409.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/445276/ft1_filtered_4FGL_J2243.8-2510_daily_bin1409.fits.....................!
real 44.48
user 43.22
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.667       1.0000         .10000E-03   10000.    
     2 'norm      '    .85179       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7845       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.4206       1.0000         .10000E-03   10000.    
     7 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.069       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.260       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1678       1.0000         .10000E-03   10000.    
    11 'norm      '    .10554E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    51.545       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.357       1.0000         .10000E-03   10000.    
    14 'norm      '    .10351E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11904E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .94699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3618       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    13.858       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.3545       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .85691       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=   4850.676     FROM MIGRAD    STATUS=CONVERGED    541 CALLS     2750 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.668        48.312        .35823E-07   -.59945E-06
   2  norm          .85176        .38281       -.26666E-08   -.89531E-05
   3  Prefactor     16.973        13.859       -.15533E-06   -.10200E-04
   4  Prefactor     7.7843        21.580        .35146E-05   -.42993E-04
   5  Prefactor     .10000E-03    4.5836        .49664E-07** at limit **
   6  Prefactor     6.3949        156.62       -.37462E-06   -.25987E-04
   7  norm          .10000E-03    13.017        .16292E-06** at limit **
   8  Prefactor     24.075        21.665        .12180E-06    .22033E-04
   9  Prefactor     16.266        15.772        .62409E-07   -.27407E-04
  10  norm          1.1677        1.3666       -.41856E-07    .34583E-04
  11  norm          .10000E-03    1.7268        .83097E-06** at limit **
  12  Prefactor     51.559        57.621       -.88131E-06   -.14592E-04
  13  Prefactor     12.361        15.106        .69951E-07   -.17585E-04
  14  norm          .10000E-03    3.1113        .46354E-06** at limit **
  15  Prefactor     .10000E-03    7.6826        .54248E-07** at limit **
  16  Prefactor     .10014E-03    7.1540        .79399E-07** at limit **
  17  norm          .94830        .73477       -.21302E-06   -.63543E-03
  18  Prefactor     .10000E-03    30.081        .46388E-06** at limit **
  19  Prefactor     9.3619        21.437        .46553E-06   -.24140E-05
  20  Prefactor     .10000E-03    3.7666        .54852E-07** at limit **
  21  norm          13.858        5.8095        .88448E-08   -.49659E-05
  22  Prefactor     .10000E-03    25.374       -.30654E-06** at limit **
  23  Normalizat    1.3541        .24797       -.16546E-05   -.22752E-06
  24  Prefactor     .85731        .21043        .84635E-06   -.10964E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6676
  norm       = 0.851758
  Prefactor  = 16.973
  Prefactor  = 7.78426
  Prefactor  = 0.0001
  Prefactor  = 6.39491
  norm       = 0.0001
  Prefactor  = 24.0749
  Prefactor  = 16.2657
  norm       = 1.1677
  norm       = 0.0001
  Prefactor  = 51.5593
  Prefactor  = 12.3614
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100137
  norm       = 0.948297
  Prefactor  = 0.000100001
  Prefactor  = 9.36189
  Prefactor  = 0.0001
  norm       = 13.8584
  Prefactor  = 0.0001
  Normalizat = 1.35405
  Prefactor  = 0.857314
 **********
 **   18 **HESSE 
 **********

 FCN=   4850.676     FROM HESSE     STATUS=OK           407 CALLS     3157 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.668        48.299        .10458E-03   -1.4942    
   2  norm          .85176        .38636        .28037E-04   -1.5523    
   3  Prefactor     16.973        13.847        .97212E-04   -1.4884    
   4  Prefactor     7.7843        20.961        .71860E-03   -1.5150    
   5  Prefactor     .10000E-03    4.6068        .14561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.3949        156.07        .15840E-03   -1.5202    
   7  norm          .10000E-03    13.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.075        21.671        .81648E-04   -1.4726    
   9  Prefactor     16.266        15.789        .99325E-04   -1.4901    
  10  norm          1.1677        1.3340        .82402E-04   -1.5492    
  11  norm          .10000E-03    1.7266        .17646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     51.559        57.663        .55861E-04   -1.4271    
  13  Prefactor     12.361        15.174        .11395E-03   -1.5005    
  14  norm          .10000E-03    5.9887        .23166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10014E-03    48.281        .32519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .94830        .68429        .47860E-04   -1.5513    
  18  Prefactor     .10000E-03    30.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.3619        21.433        .13098E-03   -1.5096    
  20  Prefactor     .10000E-03    3.7706        .13200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          13.858        5.8121        .10546E-03   -1.4963    
  22  Prefactor     .10000E-03    25.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.3541        .29306        .26120E-03   -.81967    
  24  Prefactor     .85731        .25106        .28100E-03   -.97649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0444e-09
Minuit parameter uncertainties:
  1  48.4278
  2  0.38636
  3  13.8494
  4  20.9806
  5  3.21401e-06
  6  63.3701
  7  9.40687e-06
  8  21.6786
  9  15.793
  10  1.33404
  11  5.70121e-07
  12  57.7252
  13  15.1786
  14  4.02099e-05
  15  1.36289e-05
  16  0.00514907
  17  0.684299
  18  0.000251135
  19  21.4505
  20  6.08519e-06
  21  5.81238
  22  0.000153062
  23  0.293419
  24  0.251394
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  5.156e+01  5.773e+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.573e-01  2.514e-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.354e+00  2.934e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.23
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 5.34e-08 +/- 5.98e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.43e-05

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

Saving results to:
/scratch/kocevski/445276/likelihoodResults_604540801_604800001_4FGL_J2243.8-2510_daily_bin1409.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) = 4850.67617542
delta logL = 6.92028352205e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4850.6761396
delta logL = 0.00010502085297

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    51.091       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7240       1.0000          .0000       10.000    
     3 'Normalizat'    1.3530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85784       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=   4850.676     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      250 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     51.090        67.832        .56107E-04   -.53695E-04
   2  Index         2.7244        1.2643        .98756E-02   -.38768E-04
   3  Normalizat    1.3530        .29232        .26129E-03   -.81869E-04
   4  Prefactor     .85798        .25074        .28068E-03   -.64158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 51.0898
  Index      = 2.72436
  Normalizat = 1.35299
  Prefactor  = 0.85798
 **********
 **   18 **HESSE 
 **********

 FCN=   4850.676     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     51.090        64.845        .11221E-04   -1.4277    
   2  Index         2.7244        1.2064        .39502E-03   -.47252    
   3  Normalizat    1.3530        .29170        .52257E-04   -.81998    
   4  Prefactor     .85798        .25040        .11227E-04   -.97625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01536e-10
Minuit parameter uncertainties:
  1  64.9351
  2  1.22166
  3  0.292054
  4  0.250737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445276': 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) = 4850.67613903
delta logL = 0.000105593612716

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  5.109e+01  6.494e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.724e+00  1.222e+00  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.580e-01  2.507e-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.353e+00  2.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 2.72 +/- 1.22
Photon Flux (Free Index): 5.42e-08 +/- 7.92e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.40e-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/445276/cmap_HighResolution_604540801_604800001_4FGL_J2243.8-2510_daily_bin1409.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-02', comment='SUCCESS', photon_flux='5.34e-08', energy_flux2='1.28e-05', photon_flux_error='5.98e-08', dlogl='1.06e-04', energy_flux='1.28e-05', photon_flux2='5.42e-08', job_status='DONE', time_completed='2021-09-28 19:11:02.652806', photon_index_error2='1.22', photon_index2='2.72', ts='1.23', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', photon_flux_upper_limit='1.83e-07', energy_flux_error2='1.40e-05', EG='1.35', time_epoch_completed='1632881462.65', return_code='0', job_id='445276', GAL2='0.86', EG2='1.35', return_code2='0', energy_flux_error='1.43e-05', photon_flux_error2='7.92e-08', ts2='1.23', photon_index='2.71' WHERE bin_id='1409' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:11:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 445276: <4FGL_J2243.8-2510_daily_bin1409> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1409> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:00:52 2021
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:00:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:00:53 2021
Terminated at Tue Sep 28 19:11:03 2021
Results reported at Tue Sep 28 19:11:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1409 340.957 -25.1701 604540801 604800001 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 :                                   571.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   609 sec.
    Turnaround time :                            611 sec.

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

