/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 9 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.8-2510_daily_bin127
RA = 340.957, Dec = -25.1701
tmin = 272246401, tmax = 272505601
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='439783', job_status='RUN', time_executed='2021-09-28 18:45:40.028062', time_epoch_executed='1632879940.03' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/439783

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/439783/ft1_4FGL_J2243.8-2510_daily_bin127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/439783/ft2_4FGL_J2243.8-2510_daily_bin127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/439783/ft1_4FGL_J2243.8-2510_daily_bin127.fits outfile=/scratch/kocevski/439783/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin127.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=272246401.0 tmax=272505601.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 2.47
user 2.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/439783/ft2_4FGL_J2243.8-2510_daily_bin127.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/439783/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin127.fits evtable="EVENTS" outfile="/scratch/kocevski/439783/ft1_filtered_4FGL_J2243.8-2510_daily_bin127.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/439783/ft1_filtered_4FGL_J2243.8-2510_daily_bin127.fits" evtable="EVENTS" scfile=/scratch/kocevski/439783/ft2_4FGL_J2243.8-2510_daily_bin127.fits sctable="SC_DATA" outfile=/scratch/kocevski/439783/ltcube_272246401_272505601_4FGL_J2243.8-2510_daily_bin127.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/439783/ft2_4FGL_J2243.8-2510_daily_bin127.fits
.....................!
real 12.60
user 12.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/439783/ft1_filtered_4FGL_J2243.8-2510_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/439783/ft2_4FGL_J2243.8-2510_daily_bin127.fits sctable="SC_DATA" expcube=/scratch/kocevski/439783/ltcube_272246401_272505601_4FGL_J2243.8-2510_daily_bin127.fits outfile=/scratch/kocevski/439783/expmap_272246401_272505601_4FGL_J2243.8-2510_daily_bin127.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/439783/ltcube_272246401_272505601_4FGL_J2243.8-2510_daily_bin127.fits
.....................!
real 190.13
user 185.05
sys 4.63

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/439783/ft1_filtered_4FGL_J2243.8-2510_daily_bin127.fits scfile=/scratch/kocevski/439783/ft2_4FGL_J2243.8-2510_daily_bin127.fits outfile=/scratch/kocevski/439783/cmap_272246401_272505601_4FGL_J2243.8-2510_daily_bin127.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/439783/ft1_filtered_4FGL_J2243.8-2510_daily_bin127.fits scfile=/scratch/kocevski/439783/ft2_4FGL_J2243.8-2510_daily_bin127.fits outfile=/scratch/kocevski/439783/cmap_HighResolution_272246401_272505601_4FGL_J2243.8-2510_daily_bin127.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/439783/ft1_filtered_4FGL_J2243.8-2510_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/439783/ft2_4FGL_J2243.8-2510_daily_bin127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/439783/Model_4FGL_J2243.8-2510_daily_bin127.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/439783/ft1_filtered_4FGL_J2243.8-2510_daily_bin127.fits.....................!
real 53.69
user 52.40
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    131.60       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3456       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    33.353       1.0000         .10000E-03   10000.    
     7 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13523E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2571       1.0000         .10000E-03   10000.    
    11 'norm      '    .10637E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    104.26       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.2705       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.114       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7426       1.0000         .10000E-03   10000.    
    18 'Prefactor '    168.80       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.9609       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.611       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .71548       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90330       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=   6763.389     FROM MIGRAD    STATUS=CONVERGED    508 CALLS     2683 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     131.53        91.431       -.63437E-04    .17361E-05
   2  norm          2.3456        .51035        .55512E-06   -.69997E-03
   3  Prefactor     .10000E-03    2.8051        .41889E-06** at limit **
   4  Prefactor     .10000E-03    14.493       -.84521E-06** at limit **
   5  Prefactor     .10000E-03    4.2389       -.20122E-05** at limit **
   6  Prefactor     33.357        32.789        .53100E-05   -.13999E-05
   7  norm          .10000E-03    6.6535       -.72790E-05** at limit **
   8  Prefactor     .10000E-03    5.7714       -.10104E-05** at limit **
   9  Prefactor     .10000E-03    9.0150        .41909E-05** at limit **
  10  norm          1.2571        .76409       -.11956E-06   -.62306E-03
  11  norm          .10000E-03    .63748       -.43276E-06** at limit **
  12  Prefactor     104.28        45.263        .20074E-04   -.60391E-04
  13  Prefactor     .10000E-03    4.4311       -.36068E-07** at limit **
  14  norm          7.2698        4.2699       -.61739E-06   -.22940E-03
  15  Prefactor     .10000E-03    5.1452        .41832E-05** at limit **
  16  Prefactor     22.120        10.440       -.60372E-06   -.39804E-03
  17  norm          1.7425        .75523       -.12162E-06   -.17143E-02
  18  Prefactor     168.82        100.64        .16549E-04   -.21301E-05
  19  Prefactor     .10000E-03    2.2949       -.70145E-07** at limit **
  20  Prefactor     .10000E-03    5.4252        .18571E-05** at limit **
  21  norm          1.9607        2.4395       -.37477E-06   -.64647E-03
  22  Prefactor     13.613        22.918        .35891E-05   -.11054E-04
  23  Normalizat    .71463        .16234       -.22650E-05    .10103E-03
  24  Prefactor     .90412        .14531        .17550E-05   -.13968E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 131.526
  norm       = 2.34561
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 33.3566
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 1.25708
  norm       = 0.0001
  Prefactor  = 104.283
  Prefactor  = 0.0001
  norm       = 7.26977
  Prefactor  = 0.0001
  Prefactor  = 22.12
  norm       = 1.74252
  Prefactor  = 168.822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.96066
  Prefactor  = 13.6131
  Normalizat = 0.714632
  Prefactor  = 0.904124
 **********
 **   18 **HESSE 
 **********

 FCN=   6763.389     FROM HESSE     STATUS=OK           397 CALLS     3080 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     131.53        91.648        .17550E-03   -1.3409    
   2  norm          2.3456        .51122        .26057E-04   -1.5402    
   3  Prefactor     .10000E-03    2.8195        .13452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.3729        .33061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     33.357        32.778        .69385E-04   -1.4552    
   7  norm          .10000E-03    6.6672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.7822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.0531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2571        .75099        .53874E-04   -1.5484    
  11  norm          .10000E-03    .63964        .64064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     104.28        45.328        .19690E-03   -1.3662    
  13  Prefactor     .10000E-03    4.4644        .16902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.2698        4.2627        .12023E-03   -1.5169    
  15  Prefactor     .10000E-03    5.1452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.120        10.630        .85176E-04   -1.4767    
  17  norm          1.7425        .76266        .39164E-04   -1.5444    
  18  Prefactor     168.82        100.77        .15525E-03   -1.3102    
  19  Prefactor     .10000E-03    2.2975        .12167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.4601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.9607        2.4221        .13679E-03   -1.5428    
  22  Prefactor     13.613        22.889        .10857E-03   -1.4970    
  23  Normalizat    .71463        .19453        .26865E-03   -1.0332    
  24  Prefactor     .90412        .17429        .22491E-03   -.95997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84893e-09
Minuit parameter uncertainties:
  1  91.7475
  2  0.51122
  3  5.92358e-05
  4  0.000258118
  5  1.96532e-05
  6  32.7956
  7  3.50265e-05
  8  7.09283e-06
  9  0.000367616
  10  0.750998
  11  3.30794e-05
  12  45.3426
  13  2.53239e-05
  14  4.26288
  15  1.87488e-05
  16  10.6306
  17  0.762663
  18  100.872
  19  1.5433e-06
  20  4.4423e-05
  21  2.4222
  22  22.9036
  23  0.194717
  24  0.174397
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.043e+02  4.534e+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:  9.041e-01  1.744e-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:  7.146e-01  1.947e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.84
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 4.69e-08
Energy Flux (Fixed Index): 2.59e-05 +/- 1.13e-05

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) = 6762.34251678
delta logL = 1.04602848715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6762.336217
delta logL = 1.05232826913

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.121       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5845       1.0000          .0000       10.000    
     3 'Normalizat'    .63622       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95546       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=   6762.336     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      306 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.127        54.925        .59687E-04   -.56189E-04
   2  Index         3.5846        .87194        .37259E-02    .63276E-03
   3  Normalizat    .63568        .19557        .28292E-03    .10930E-04
   4  Prefactor     .95590        .17787        .21936E-03    .16713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.1271
  Index      = 3.58461
  Normalizat = 0.635679
  Prefactor  = 0.955898
 **********
 **   18 **HESSE 
 **********

 FCN=   6762.336     FROM HESSE     STATUS=OK            25 CALLS      331 TOTAL
                     EDM=   .88E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.127        43.752        .23875E-05   -1.4363    
   2  Index         3.5846        .69514        .74518E-03   -.28700    
   3  Normalizat    .63568        .19407        .11317E-04   -1.0649    
   4  Prefactor     .95590        .17681        .43871E-04   -.94214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8069e-11
Minuit parameter uncertainties:
  1  43.7831
  2  0.6976
  3  0.194279
  4  0.176912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/439783': 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) = 6762.33621301
delta logL = 1.05233225901

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  4.513e+01  4.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.585e+00  6.976e-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:  9.559e-01  1.769e-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:  6.357e-01  1.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.51
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 3.58 +/- 0.70
Photon Flux (Free Index): 1.66e-07 +/- 6.52e-08
Energy Flux (Free Index): 2.70e-05 +/- 9.69e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -9.398e-02 [aplpy.core]
INFO: Auto-setting vmax to  1.043e+00 [aplpy.core]
Saving /scratch/kocevski/439783/cmap_HighResolution_272246401_272505601_4FGL_J2243.8-2510_daily_bin127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='2.70e-05', photon_flux_error='4.69e-08', dlogl='1.05e+00', energy_flux='2.59e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-28 18:55:49.896525', photon_index_error2='0.70', photon_index2='3.58', ts='10.84', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='9.69e-06', EG='0.71', time_epoch_completed='1632880549.9', return_code='0', job_id='439783', GAL2='0.96', EG2='0.64', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='6.52e-08', ts2='13.51', photon_index='2.71' WHERE bin_id='127' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:55:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 439783: <4FGL_J2243.8-2510_daily_bin127> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin127> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:45:20 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:45:22 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:45:22 2021
Terminated at Tue Sep 28 18:55:50 2021
Results reported at Tue Sep 28 18:55:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin127 340.957 -25.1701 272246401 272505601 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 :                                   609.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   628 sec.
    Turnaround time :                            630 sec.

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

