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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin508
RA = 340.957, Dec = -25.1701
tmin = 371001601, tmax = 371260801
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='441846', job_status='RUN', time_executed='2021-09-28 18:53:05.061468', time_epoch_executed='1632880385.06' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441846

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441846/ft1_4FGL_J2243.8-2510_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441846/ft2_4FGL_J2243.8-2510_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441846/ft1_4FGL_J2243.8-2510_daily_bin508.fits outfile=/scratch/kocevski/441846/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin508.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=371001601.0 tmax=371260801.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 6.58
user 6.30
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/441846/ft2_4FGL_J2243.8-2510_daily_bin508.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/441846/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/441846/ft1_filtered_4FGL_J2243.8-2510_daily_bin508.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441846/ft1_filtered_4FGL_J2243.8-2510_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/441846/ft2_4FGL_J2243.8-2510_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/441846/ltcube_371001601_371260801_4FGL_J2243.8-2510_daily_bin508.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/441846/ft2_4FGL_J2243.8-2510_daily_bin508.fits
.....................!
real 11.59
user 11.20
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441846/ft1_filtered_4FGL_J2243.8-2510_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/441846/ft2_4FGL_J2243.8-2510_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/441846/ltcube_371001601_371260801_4FGL_J2243.8-2510_daily_bin508.fits outfile=/scratch/kocevski/441846/expmap_371001601_371260801_4FGL_J2243.8-2510_daily_bin508.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/441846/ltcube_371001601_371260801_4FGL_J2243.8-2510_daily_bin508.fits
.....................!
real 191.09
user 186.11
sys 4.65

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/441846/ft1_filtered_4FGL_J2243.8-2510_daily_bin508.fits scfile=/scratch/kocevski/441846/ft2_4FGL_J2243.8-2510_daily_bin508.fits outfile=/scratch/kocevski/441846/cmap_371001601_371260801_4FGL_J2243.8-2510_daily_bin508.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441846/ft1_filtered_4FGL_J2243.8-2510_daily_bin508.fits scfile=/scratch/kocevski/441846/ft2_4FGL_J2243.8-2510_daily_bin508.fits outfile=/scratch/kocevski/441846/cmap_HighResolution_371001601_371260801_4FGL_J2243.8-2510_daily_bin508.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/441846/ft1_filtered_4FGL_J2243.8-2510_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/441846/ft2_4FGL_J2243.8-2510_daily_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/441846/Model_4FGL_J2243.8-2510_daily_bin508.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/441846/ft1_filtered_4FGL_J2243.8-2510_daily_bin508.fits.....................!
real 39.57
user 38.27
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.963       1.0000         .10000E-03   10000.    
     2 'norm      '    .59321       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10700E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.925       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1012       1.0000         .10000E-03   10000.    
    10 'norm      '    4.6220       1.0000         .10000E-03   10000.    
    11 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    19.154       1.0000         .10000E-03   10000.    
    14 'norm      '    7.9422       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.529       1.0000         .10000E-03   10000.    
    17 'norm      '    1.5129       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.9999       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.481       1.0000         .10000E-03   10000.    
    21 'norm      '    5.6679       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .73540       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1736       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=   4433.431     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2700 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.955        75.838       -.25235E-05   -.10957E-03
   2  norm          .59320        .32690        .96823E-08    .78889E-04
   3  Prefactor     .10000E-03    5.8616        .17204E-07** at limit **
   4  Prefactor     .10000E-03    24.076       -.91938E-06** at limit **
   5  Prefactor     .10000E-03    3.8253        .24765E-07** at limit **
   6  Prefactor     .10000E-03    32.972        .47256E-06** at limit **
   7  norm          .10000E-03    7.8798        .70123E-08** at limit **
   8  Prefactor     12.911        27.992       -.16892E-05   -.93141E-04
   9  Prefactor     6.0997        12.021        .25913E-05   -.42925E-03
  10  norm          4.6223        1.5068        .32927E-08   -.46861E-05
  11  norm          .10000E-03    .88630       -.45326E-07** at limit **
  12  Prefactor     .10000E-03    21.861        .11353E-05** at limit **
  13  Prefactor     19.153        15.974        .28310E-06    .65117E-04
  14  norm          7.9424        6.0026        .87978E-06    .58090E-03
  15  Prefactor     .10000E-03    20.946       -.30592E-06** at limit **
  16  Prefactor     11.528        11.395        .52251E-07    .71412E-04
  17  norm          1.5129        1.0428       -.89056E-07   -.16976E-03
  18  Prefactor     .10000E-03    122.94       -.33189E-06** at limit **
  19  Prefactor     5.9976        11.777        .58418E-07   -.27203E-04
  20  Prefactor     13.483        15.097       -.73756E-07   -.19682E-04
  21  norm          5.6689        5.2380       -.18359E-06   -.21856E-03
  22  Prefactor     .10000E-03    24.066       -.38888E-06** at limit **
  23  Normalizat    .73527        .23682       -.48042E-07   -.10771E-04
  24  Prefactor     1.1736        .20805       -.30400E-06    .15611E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.9547
  norm       = 0.593196
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.9106
  Prefactor  = 6.09969
  norm       = 4.62232
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.153
  norm       = 7.94244
  Prefactor  = 0.0001
  Prefactor  = 11.5281
  norm       = 1.51292
  Prefactor  = 0.0001
  Prefactor  = 5.99757
  Prefactor  = 13.4826
  norm       = 5.66891
  Prefactor  = 0.0001
  Normalizat = 0.735274
  Prefactor  = 1.17359
 **********
 **   18 **HESSE 
 **********

 FCN=   4433.431     FROM HESSE     STATUS=OK           399 CALLS     3099 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.955        77.491        .44636E-04   -1.3906    
   2  norm          .59320        .32912        .27460E-04   -1.5554    
   3  Prefactor     .10000E-03    5.8747        .15743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.8347        .12718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    7.8821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.911        28.483        .11142E-03   -1.4989    
   9  Prefactor     6.0997        14.020        .81270E-03   -1.5214    
  10  norm          4.6223        1.5073        .45126E-04   -1.5278    
  11  norm          .10000E-03    .89004        .61241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    21.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     19.153        16.027        .91516E-04   -1.4832    
  14  norm          7.9424        6.2029        .13538E-03   -1.5144    
  15  Prefactor     .10000E-03    21.052        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.528        11.407        .11798E-03   -1.5029    
  17  norm          1.5129        1.0411        .47228E-04   -1.5462    
  18  Prefactor     .10000E-03    123.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.9976        11.794        .16393E-03   -1.5218    
  20  Prefactor     13.483        15.110        .10909E-03   -1.4973    
  21  norm          5.6689        5.2766        .14166E-03   -1.5232    
  22  Prefactor     .10000E-03    24.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .73527        .28826        .31242E-03   -1.0252    
  24  Prefactor     1.1736        .25398        .22974E-03   -.87148    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0004e-09
Minuit parameter uncertainties:
  1  77.5878
  2  0.329121
  3  4.61553e-06
  4  0.000132475
  5  3.89126e-06
  6  8.40427e-05
  7  1.9664e-06
  8  28.5134
  9  14.0278
  10  1.50733
  11  2.95583e-06
  12  0.000153658
  13  16.0308
  14  6.20343
  15  0.000102044
  16  11.4091
  17  1.04109
  18  0.000108046
  19  11.7986
  20  15.114
  21  5.27704
  22  4.93854e-05
  23  0.288855
  24  0.25424
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.537e-04  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:  1.174e+00  2.542e-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.353e-01  2.889e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 9.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/441846/likelihoodResults_371001601_371260801_4FGL_J2243.8-2510_daily_bin508.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4433.43083281
delta logL = -0.000216542748603

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4433.43083255
delta logL = -0.000216277117943

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96134E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7067       1.0000          .0000       10.000    
     3 'Normalizat'    .73527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1736       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4433.334     FROM MIGRAD    STATUS=FAILED       194 CALLS      338 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .33370E-01    .35335E-03** at limit **
   2  Index         9.9283        7.2725        .91480E-01    .30642E-03
   3  Normalizat    .71142        .75286E-01    .31242E-03   -.46735E-03
   4  Prefactor     1.1889        .67397E-01    .22974E-03   -.40503E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4433.334     FROM SIMPLEX   STATUS=UNCHANGED    148 CALLS      486 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .33370E-01    .10114E-04** at limit **
   2  Index         9.9283        7.2725        .10021E-01    .30642E-03
   3  Normalizat    .71142        .75286E-01    .29071E-06   -.46735E-03
   4  Prefactor     1.1889        .67397E-01    .18520E-05   -.40503E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4433.334     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      527 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .39171E-01    .33577E-03** at limit **
   2  Index         9.9283        5.7737        .18296E-01    .30572E-05
   3  Normalizat    .71142        .79716E-01    .62484E-04   -.47983E-03
   4  Prefactor     1.1889        .72557E-01    .45949E-04   -.41195E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 9.92827
  Normalizat = 0.711423
  Prefactor  = 1.18895
 **********
 **   18 **HESSE 
 **********

 FCN=   4433.334     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      562 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .38987E-01    .33971E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.9283        5.6102        .73184E-03   -4.5428    
   3  Normalizat    .71142        .80244E-01    .12497E-04   -1.0344    
   4  Prefactor     1.1889        .73229E-01    .91898E-05   -.86672    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.45879e-09
Minuit parameter uncertainties:
  1  1.42248e-06
  2  15.4295
  3  0.0802571
  4  0.0732348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441846': 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): 102
logL (Free Index) = 4433.33372354
delta logL = 0.096892729689

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.422e-06  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  9.928e+00  1.543e+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:  1.189e+00  7.323e-02  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.114e-01  8.026e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.957 -25.170

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/441846/cmap_HighResolution_371001601_371260801_4FGL_J2243.8-2510_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.32e-03', job_status='DONE', photon_flux_upper_limit='9.30e-08', time_completed='2021-09-28 19:02:29.285574', job_id='441846', GAL2='1.19', fit_tolerance='1e-08', EG2='0.71', EG='0.74', time_epoch_completed='1632880949.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.17', dlogl='9.69e-02', ts2='0.20', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='508' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:02:29 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin508 340.957 -25.1701 371001601 371260801 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 :                                   562.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

