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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1001
RA = 340.957, Dec = -25.1701
tmin = 498787201, tmax = 499046401
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='443596', job_status='RUN', time_executed='2021-09-28 18:58:29.669043', time_epoch_executed='1632880709.67' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1001'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443596

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443596/ft1_4FGL_J2243.8-2510_daily_bin1001.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443596/ft2_4FGL_J2243.8-2510_daily_bin1001.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443596/ft1_4FGL_J2243.8-2510_daily_bin1001.fits outfile=/scratch/kocevski/443596/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1001.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=498787201.0 tmax=499046401.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 5.27
user 4.82
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443596/ft1_filtered_4FGL_J2243.8-2510_daily_bin1001.fits" evtable="EVENTS" scfile=/scratch/kocevski/443596/ft2_4FGL_J2243.8-2510_daily_bin1001.fits sctable="SC_DATA" outfile=/scratch/kocevski/443596/ltcube_498787201_499046401_4FGL_J2243.8-2510_daily_bin1001.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/443596/ft2_4FGL_J2243.8-2510_daily_bin1001.fits
.....................!
real 13.34
user 12.97
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443596/ft1_filtered_4FGL_J2243.8-2510_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/443596/ft2_4FGL_J2243.8-2510_daily_bin1001.fits sctable="SC_DATA" expcube=/scratch/kocevski/443596/ltcube_498787201_499046401_4FGL_J2243.8-2510_daily_bin1001.fits outfile=/scratch/kocevski/443596/expmap_498787201_499046401_4FGL_J2243.8-2510_daily_bin1001.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/443596/ltcube_498787201_499046401_4FGL_J2243.8-2510_daily_bin1001.fits
.....................!
real 190.26
user 184.83
sys 5.13

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/443596/ft1_filtered_4FGL_J2243.8-2510_daily_bin1001.fits scfile=/scratch/kocevski/443596/ft2_4FGL_J2243.8-2510_daily_bin1001.fits outfile=/scratch/kocevski/443596/cmap_498787201_499046401_4FGL_J2243.8-2510_daily_bin1001.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443596/ft1_filtered_4FGL_J2243.8-2510_daily_bin1001.fits scfile=/scratch/kocevski/443596/ft2_4FGL_J2243.8-2510_daily_bin1001.fits outfile=/scratch/kocevski/443596/cmap_HighResolution_498787201_499046401_4FGL_J2243.8-2510_daily_bin1001.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/443596/ft1_filtered_4FGL_J2243.8-2510_daily_bin1001.fits evtable="EVENTS" scfile=/scratch/kocevski/443596/ft2_4FGL_J2243.8-2510_daily_bin1001.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443596/Model_4FGL_J2243.8-2510_daily_bin1001.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/443596/ft1_filtered_4FGL_J2243.8-2510_daily_bin1001.fits.....................!
real 45.64
user 44.33
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .95432       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.2542       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .73098       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.389       1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.434       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.107       1.0000         .10000E-03   10000.    
    10 'norm      '    4.3137       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.755       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.8100       1.0000         .10000E-03   10000.    
    17 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    62.631       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10523E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    70.405       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0738       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1292       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=   5147.565     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2743 TOTAL
                     EDM=   .19E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.998        .14377E-04** at limit **
   2  norm          .95428        .39988       -.12843E-08   -.10655E-03
   3  Prefactor     .10000E-03    3.5940       -.18257E-07** at limit **
   4  Prefactor     1.2476        4.3409        .70787E-06   -.39458E-03
   5  Prefactor     .71263        5.9661        .86789E-07   -.67741E-04
   6  Prefactor     .10000E-03    16.712        .19100E-05** at limit **
   7  norm          21.389        21.437       -.11146E-06    .41118E-05
   8  Prefactor     18.436        20.809        .10460E-05    .23971E-05
   9  Prefactor     11.107        13.646        .15028E-07    .96367E-05
  10  norm          4.3137        1.6861        .24195E-07   -.56999E-05
  11  norm          .10000E-03    .99278       -.10530E-07** at limit **
  12  Prefactor     .10000E-03    14.256       -.82975E-06** at limit **
  13  Prefactor     .10000E-03    6.0946        .29735E-07** at limit **
  14  norm          .10000E-03    2.0599       -.43636E-07** at limit **
  15  Prefactor     24.766        20.392        .30035E-05    .20343E-03
  16  Prefactor     5.8119        11.135       -.20313E-05    .24686E-03
  17  norm          .10000E-03    .35674        .79401E-07** at limit **
  18  Prefactor     .10000E-03    48.608       -.71693E-05** at limit **
  19  Prefactor     62.630        26.199       -.65549E-06   -.17820E-05
  20  Prefactor     .10000E-03    27.263       -.87632E-05** at limit **
  21  norm          .10000E-03    4.8793       -.85078E-07** at limit **
  22  Prefactor     70.407        53.312        .26568E-05    .11462E-04
  23  Normalizat    1.0736        .23645        .18337E-06    .39642E-04
  24  Prefactor     1.1293        .21130       -.39339E-06    .58583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.954278
  Prefactor  = 0.0001
  Prefactor  = 1.24761
  Prefactor  = 0.712632
  Prefactor  = 0.0001
  norm       = 21.3886
  Prefactor  = 18.436
  Prefactor  = 11.1072
  norm       = 4.31369
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 24.7655
  Prefactor  = 5.81186
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.6297
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.4074
  Normalizat = 1.07365
  Prefactor  = 1.12934
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.565     FROM HESSE     STATUS=OK           399 CALLS     3142 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    35.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .95428        .40120        .28494E-04   -1.5513    
   3  Prefactor     .10000E-03    3.6027        .13283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2476        46.563        .19946E-02   -1.5485    
   5  Prefactor     .71263        29.446        .32997E-02   -1.5539    
   6  Prefactor     .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.389        21.438        .86607E-04   -1.4783    
   8  Prefactor     18.436        20.828        .93285E-04   -1.4849    
   9  Prefactor     11.107        13.692        .12021E-03   -1.5041    
  10  norm          4.3137        1.6867        .55759E-04   -1.5293    
  11  norm          .10000E-03    1.0002        .69791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1304        .17296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.0670        .10047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.766        20.352        .80511E-04   -1.4712    
  16  Prefactor     5.8119        10.587        .16662E-03   -1.5226    
  17  norm          .10000E-03    .50902        .77140E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    48.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     62.630        26.233        .50704E-04   -1.4124    
  20  Prefactor     .10000E-03    27.530        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    5.0046        .30891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     70.407        53.334        .47842E-04   -1.4028    
  23  Normalizat    1.0736        .29544        .28464E-03   -.90602    
  24  Prefactor     1.1293        .26193        .26027E-03   -.88534    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62862e-08
Minuit parameter uncertainties:
  1  6.13682e-05
  2  0.4012
  3  1.72512e-07
  4  15.2559
  5  9.16595
  6  6.29546e-06
  7  21.446
  8  20.8357
  9  13.6955
  10  1.68671
  11  2.43087e-07
  12  8.20265e-07
  13  2.66824e-06
  14  1.69237e-06
  15  20.3575
  16  10.5906
  17  4.98839e-06
  18  3.64866e-05
  19  26.2381
  20  0.000152909
  21  2.46344e-05
  22  53.3704
  23  0.295899
  24  0.262228
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  8.203e-07  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.129e+00  2.622e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  1.074e+00  2.959e-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: 7.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443596/likelihoodResults_498787201_499046401_4FGL_J2243.8-2510_daily_bin1001.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) = 5147.56516165
delta logL = -0.000333056890668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5147.56483277
delta logL = -4.17499177274e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.4136       1.0000          .0000       10.000    
     3 'Normalizat'    1.0736       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1294       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=   5147.565     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      299 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    99.656        .18142E-01** at limit **
   2  Index         1.9590        8.4626        .50000        .43201E-08
   3  Normalizat    1.0737        .12006E-01    .28464E-03    .15596E-02
   4  Prefactor     1.1293        .11281E-01    .26027E-03    .17120E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.95899
  Normalizat = 1.07365
  Prefactor  = 1.12935
 **********
 **   18 **HESSE 
 **********

 FCN=   5147.565     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      328 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    539.59        .32748E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9590        5.1830        .50000       -.65379    
   3  Normalizat    1.0737        .28770E-01    .56928E-04   -.90602    
   4  Prefactor     1.1293        .27034E-01    .52054E-04   -.88534    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.09443e-10
Minuit parameter uncertainties:
  1  0.000146185
  2  1271.45
  3  0.0287709
  4  0.0270339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443596': 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) = 5147.56482738
delta logL = 1.21508128359e-06

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.462e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.959e+00  1.271e+03  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.129e+00  2.703e-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:  1.074e+00  2.877e-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/443596/cmap_HighResolution_498787201_499046401_4FGL_J2243.8-2510_daily_bin1001.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.88e-03', job_status='DONE', photon_flux_upper_limit='7.47e-08', time_completed='2021-09-28 19:08:34.196286', job_id='443596', GAL2='1.13', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1632881314.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.22e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1001' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:08:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0286>
Subject: Job 443596: <4FGL_J2243.8-2510_daily_bin1001> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1001> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:55:43 2021
Job was executed on host(s) <bullet0286>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:55:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:55:45 2021
Terminated at Tue Sep 28 19:08:35 2021
Results reported at Tue Sep 28 19:08:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1001 340.957 -25.1701 498787201 499046401 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 :                                   602.37 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            772 sec.

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

