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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin446
RA = 340.957, Dec = -25.1701
tmin = 354931201, tmax = 355190401
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='441741', job_status='RUN', time_executed='2021-09-28 18:53:42.394889', time_epoch_executed='1632880422.39' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='446'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441741

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441741/ft1_4FGL_J2243.8-2510_daily_bin446.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441741/ft2_4FGL_J2243.8-2510_daily_bin446.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441741/ft1_4FGL_J2243.8-2510_daily_bin446.fits outfile=/scratch/kocevski/441741/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin446.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=354931201.0 tmax=355190401.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.34
user 3.11
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/441741/ft2_4FGL_J2243.8-2510_daily_bin446.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/441741/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin446.fits evtable="EVENTS" outfile="/scratch/kocevski/441741/ft1_filtered_4FGL_J2243.8-2510_daily_bin446.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/441741/ft1_filtered_4FGL_J2243.8-2510_daily_bin446.fits" evtable="EVENTS" scfile=/scratch/kocevski/441741/ft2_4FGL_J2243.8-2510_daily_bin446.fits sctable="SC_DATA" outfile=/scratch/kocevski/441741/ltcube_354931201_355190401_4FGL_J2243.8-2510_daily_bin446.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/441741/ft2_4FGL_J2243.8-2510_daily_bin446.fits
.....................!
real 11.53
user 11.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441741/ft1_filtered_4FGL_J2243.8-2510_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/441741/ft2_4FGL_J2243.8-2510_daily_bin446.fits sctable="SC_DATA" expcube=/scratch/kocevski/441741/ltcube_354931201_355190401_4FGL_J2243.8-2510_daily_bin446.fits outfile=/scratch/kocevski/441741/expmap_354931201_355190401_4FGL_J2243.8-2510_daily_bin446.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/441741/ltcube_354931201_355190401_4FGL_J2243.8-2510_daily_bin446.fits
.....................!
real 191.55
user 185.44
sys 5.72

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/441741/ft1_filtered_4FGL_J2243.8-2510_daily_bin446.fits scfile=/scratch/kocevski/441741/ft2_4FGL_J2243.8-2510_daily_bin446.fits outfile=/scratch/kocevski/441741/cmap_354931201_355190401_4FGL_J2243.8-2510_daily_bin446.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/441741/ft1_filtered_4FGL_J2243.8-2510_daily_bin446.fits scfile=/scratch/kocevski/441741/ft2_4FGL_J2243.8-2510_daily_bin446.fits outfile=/scratch/kocevski/441741/cmap_HighResolution_354931201_355190401_4FGL_J2243.8-2510_daily_bin446.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/441741/ft1_filtered_4FGL_J2243.8-2510_daily_bin446.fits evtable="EVENTS" scfile=/scratch/kocevski/441741/ft2_4FGL_J2243.8-2510_daily_bin446.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/441741/Model_4FGL_J2243.8-2510_daily_bin446.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/441741/ft1_filtered_4FGL_J2243.8-2510_daily_bin446.fits.....................!
real 55.05
user 53.68
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    2.2449       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    46.359       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.2076       1.0000         .10000E-03   10000.    
    11 'norm      '    .12318       1.0000         .10000E-03   10000.    
    12 'Prefactor '    38.315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .57191E-02   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4330       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    49.693       1.0000         .10000E-03   10000.    
    17 'norm      '    1.6874       1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.074       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.0308       1.0000         .10000E-03   10000.    
    21 'norm      '    .38569E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81854       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .95177       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=   7301.310     FROM MIGRAD    STATUS=CONVERGED    564 CALLS     2767 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.099        .79622E-06** at limit **
   2  norm          2.2450        .47286        .12668E-07   -.72521E-04
   3  Prefactor     .10000E-03    4.4097       -.11203E-06** at limit **
   4  Prefactor     .10000E-03    10.723       -.16745E-06** at limit **
   5  Prefactor     .10000E-03    5.2255       -.17782E-06** at limit **
   6  Prefactor     .10000E-03    21.630       -.25280E-06** at limit **
   7  norm          46.350        24.205       -.20182E-05   -.54649E-03
   8  Prefactor     .10000E-03    10.978       -.13503E-06** at limit **
   9  Prefactor     .10000E-03    4.7978        .17865E-05** at limit **
  10  norm          2.2077        .90349        .92051E-08    .62350E-04
  11  norm          .13435        7.9901        .10864E-04    .42751E-03
  12  Prefactor     38.204        46.355       -.14367E-04    .20150E-04
  13  Prefactor     .10137E-03    9.9044        .87300E-05** at limit **
  14  norm          4.4320        3.6031       -.22069E-06   -.50997E-03
  15  Prefactor     .10000E-03    21.173        .54963E-07** at limit **
  16  Prefactor     49.709        15.118        .20663E-06   -.16673E-02
  17  norm          1.6872        1.1133        .71345E-07   -.17788E-02
  18  Prefactor     62.067        64.531        .59435E-06   -.34130E-04
  19  Prefactor     .10000E-03    2.0256       -.17555E-07** at limit **
  20  Prefactor     3.0322        11.070       -.74743E-05   -.31596E-04
  21  norm          .10000E-03    1.4451        .17441E-06** at limit **
  22  Prefactor     .10000E-03    11.660        .17733E-06** at limit **
  23  Normalizat    .81797        .17502       -.11413E-05   -.86579E-03
  24  Prefactor     .95216        .15797        .65290E-06   -.10173E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 2.24503
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 46.3501
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.20766
  norm       = 0.134346
  Prefactor  = 38.2042
  Prefactor  = 0.000101366
  norm       = 4.432
  Prefactor  = 0.0001
  Prefactor  = 49.709
  norm       = 1.68716
  Prefactor  = 62.0668
  Prefactor  = 0.0001
  Prefactor  = 3.03223
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.817965
  Prefactor  = 0.952155
 **********
 **   18 **HESSE 
 **********

 FCN=   7301.310     FROM HESSE     STATUS=OK           395 CALLS     3162 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    28.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.2450        .47328        .26160E-04   -1.5408    
   3  Prefactor     .10000E-03    4.4447        .17520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3646        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          46.350        24.272        .58888E-04   -1.4345    
   8  Prefactor     .10000E-03    11.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.8584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.2077        .90351        .50159E-04   -1.5411    
  11  norm          .13435        9.0888        .16726E-02   -1.5635    
  12  Prefactor     38.204        48.629        .64751E-04   -1.4471    
  13  Prefactor     .10137E-03    79.629        .38574E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.4320        3.5921        .13746E-03   -1.5287    
  15  Prefactor     .10000E-03    21.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     49.709        15.276        .56887E-04   -1.4297    
  17  norm          1.6872        1.1103        .50205E-04   -1.5448    
  18  Prefactor     62.067        64.462        .50930E-04   -1.4131    
  19  Prefactor     .10000E-03    2.0273        .11877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.0322        11.125        .11654E-02   -1.5360    
  21  norm          .10000E-03    4.5945        .19962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    11.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81797        .20426        .27015E-03   -.99406    
  24  Prefactor     .95216        .18598        .23494E-03   -.94342    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89562e-08
Minuit parameter uncertainties:
  1  0.000449082
  2  0.473278
  3  2.87095e-06
  4  3.26549e-05
  5  3.19645e-07
  6  9.18627e-05
  7  24.2775
  8  1.60914e-05
  9  0.000113217
  10  0.903512
  11  2.20955
  12  48.68
  13  0.0208872
  14  3.59228
  15  0.000202056
  16  15.2771
  17  1.11032
  18  64.5345
  19  5.81559e-07
  20  11.1326
  21  6.288e-05
  22  7.88904e-05
  23  0.204448
  24  0.186109
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  3.820e+01  4.868e+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.522e-01  1.861e-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:  8.180e-01  2.044e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.29
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 3.96e-08 +/- 5.04e-08
Energy Flux (Fixed Index): 9.48e-06 +/- 1.21e-05

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

Saving results to:
/scratch/kocevski/441741/likelihoodResults_354931201_355190401_4FGL_J2243.8-2510_daily_bin446.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) = 7297.41332309
delta logL = 3.89663353029

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7296.98107684
delta logL = 4.32887978367

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7296.981     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      243 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.6950        2.8407        .61935E-02   -.18291E-03
   2  Index         .49550        .27176        .19114       -.35860E-04
   3  Normalizat    .83227        .16308        .44026E-01   -.40088E-04
   4  Prefactor     .95422        .15301        .45695E-01    .13315E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.69503
  Index      = 0.495502
  Normalizat = 0.832273
  Prefactor  = 0.954225
 **********
 **   18 **HESSE 
 **********

 FCN=   7296.981     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.6950        7.8444        .12077E-03   -1.5380    
   2  Index         .49550        .70952        .87625E-02   -1.1218    
   3  Normalizat    .83227        .19345        .26808E-03   -.98883    
   4  Prefactor     .95422        .18160        .23500E-03   -.94271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74099e-09
Minuit parameter uncertainties:
  1  7.8474
  2  0.722809
  3  0.193608
  4  0.181713
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441741': 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) = 7296.9810704
delta logL = 4.32888622441

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  2.695e+00  7.847e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  4.955e-01  7.228e-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.542e-01  1.817e-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:  8.323e-01  1.936e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.93
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 0.50 +/- 0.72
Photon Flux (Free Index): 4.36e-09 +/- 4.30e-09
Energy Flux (Free Index): 1.51e-04 +/- 1.44e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/441741/cmap_HighResolution_354931201_355190401_4FGL_J2243.8-2510_daily_bin446.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.72e-03', comment='SUCCESS', photon_flux='3.96e-08', energy_flux2='1.51e-04', photon_flux_error='5.04e-08', dlogl='4.33e+00', energy_flux='9.48e-06', photon_flux2='4.36e-09', job_status='DONE', time_completed='2021-09-28 19:05:40.236363', photon_index_error2='0.72', photon_index2='0.50', ts='1.29', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='1.44e-04', EG='0.82', time_epoch_completed='1632881140.24', return_code='0', job_id='441741', GAL2='0.95', EG2='0.83', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='4.30e-09', ts2='9.93', photon_index='2.71' WHERE bin_id='446' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:05:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 441741: <4FGL_J2243.8-2510_daily_bin446> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin446> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:50:29 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:50:30 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:50:30 2021
Terminated at Tue Sep 28 19:05:41 2021
Results reported at Tue Sep 28 19:05:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin446 340.957 -25.1701 354931201 355190401 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 :                                   718.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

