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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1384
RA = 340.957, Dec = -25.1701
tmin = 598060801, tmax = 598320001
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='445238', job_status='RUN', time_executed='2021-09-28 19:04:19.024647', time_epoch_executed='1632881059.02' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1384'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445238

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445238/ft1_4FGL_J2243.8-2510_daily_bin1384.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445238/ft2_4FGL_J2243.8-2510_daily_bin1384.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445238/ft1_4FGL_J2243.8-2510_daily_bin1384.fits outfile=/scratch/kocevski/445238/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1384.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=598060801.0 tmax=598320001.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 4.96
user 4.73
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445238/ft2_4FGL_J2243.8-2510_daily_bin1384.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/445238/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1384.fits evtable="EVENTS" outfile="/scratch/kocevski/445238/ft1_filtered_4FGL_J2243.8-2510_daily_bin1384.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/445238/ft1_filtered_4FGL_J2243.8-2510_daily_bin1384.fits" evtable="EVENTS" scfile=/scratch/kocevski/445238/ft2_4FGL_J2243.8-2510_daily_bin1384.fits sctable="SC_DATA" outfile=/scratch/kocevski/445238/ltcube_598060801_598320001_4FGL_J2243.8-2510_daily_bin1384.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/445238/ft2_4FGL_J2243.8-2510_daily_bin1384.fits
.....................!
real 11.69
user 11.34
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445238/ft1_filtered_4FGL_J2243.8-2510_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/445238/ft2_4FGL_J2243.8-2510_daily_bin1384.fits sctable="SC_DATA" expcube=/scratch/kocevski/445238/ltcube_598060801_598320001_4FGL_J2243.8-2510_daily_bin1384.fits outfile=/scratch/kocevski/445238/expmap_598060801_598320001_4FGL_J2243.8-2510_daily_bin1384.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/445238/ltcube_598060801_598320001_4FGL_J2243.8-2510_daily_bin1384.fits
.....................!
real 189.28
user 185.02
sys 3.96

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/445238/ft1_filtered_4FGL_J2243.8-2510_daily_bin1384.fits scfile=/scratch/kocevski/445238/ft2_4FGL_J2243.8-2510_daily_bin1384.fits outfile=/scratch/kocevski/445238/cmap_598060801_598320001_4FGL_J2243.8-2510_daily_bin1384.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.957 yref=-25.1701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445238/ft1_filtered_4FGL_J2243.8-2510_daily_bin1384.fits scfile=/scratch/kocevski/445238/ft2_4FGL_J2243.8-2510_daily_bin1384.fits outfile=/scratch/kocevski/445238/cmap_HighResolution_598060801_598320001_4FGL_J2243.8-2510_daily_bin1384.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445238/ft1_filtered_4FGL_J2243.8-2510_daily_bin1384.fits evtable="EVENTS" scfile=/scratch/kocevski/445238/ft2_4FGL_J2243.8-2510_daily_bin1384.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445238/Model_4FGL_J2243.8-2510_daily_bin1384.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/445238/ft1_filtered_4FGL_J2243.8-2510_daily_bin1384.fits.....................!
real 51.41
user 50.12
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.169       1.0000         .10000E-03   10000.    
     2 'norm      '    .49962       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.684       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0033       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3471       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2270       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.891       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40835E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .70745       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1826       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .31477E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.9654       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81608       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .70139       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=   6615.463     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2330 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.108        40.263       -.74293E-04   -.22528E-04
   2  norm          .49969        .23002        .22043E-06    .17101E-02
   3  Prefactor     .10000E-03    2.8610        .14023E-06** at limit **
   4  Prefactor     .10000E-03    18.112        .37416E-06** at limit **
   5  Prefactor     .10000E-03    2.2294       -.27424E-07** at limit **
   6  Prefactor     .10000E-03    15.559        .45221E-05** at limit **
   7  norm          .10000E-03    3.7985        .44018E-07** at limit **
   8  Prefactor     23.685        14.945       -.34145E-06    .17582E-04
   9  Prefactor     8.0058        9.4649       -.10231E-05   -.56074E-04
  10  norm          2.3471        .83007       -.70058E-07    .58076E-04
  11  norm          2.2275        1.3907       -.23605E-06    .18170E-03
  12  Prefactor     .10000E-03    51.494        .72976E-05** at limit **
  13  Prefactor     24.896        10.269       -.64294E-06    .15320E-03
  14  norm          .10000E-03    .70355        .11166E-06** at limit **
  15  Prefactor     .10000E-03    2.9572        .13257E-06** at limit **
  16  Prefactor     .10000E-03    3.4435       -.58729E-06** at limit **
  17  norm          .70881        .47628       -.60800E-07    .23770E-02
  18  Prefactor     .10000E-03    17.661       -.24499E-05** at limit **
  19  Prefactor     7.1826        8.3993       -.78583E-06   -.84145E-04
  20  Prefactor     .10000E-03    4.9323       -.45950E-06** at limit **
  21  norm          6.9662        3.0276       -.29534E-06    .32502E-04
  22  Prefactor     .10000E-03    17.579       -.25666E-05** at limit **
  23  Normalizat    .81577        .14459        .34521E-05    .11585E-03
  24  Prefactor     .70169        .13006        .52355E-06    .31929E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1085
  norm       = 0.499689
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.685
  Prefactor  = 8.0058
  norm       = 2.34705
  norm       = 2.22745
  Prefactor  = 0.0001
  Prefactor  = 24.8964
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.708806
  Prefactor  = 0.0001
  Prefactor  = 7.1826
  Prefactor  = 0.0001
  norm       = 6.96617
  Prefactor  = 0.0001
  Normalizat = 0.815766
  Prefactor  = 0.701688
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.463     FROM HESSE     STATUS=OK           397 CALLS     2727 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.108        40.306        .34788E-03   -1.4557    
   2  norm          .49969        .23122        .25708E-04   -1.5567    
   3  Prefactor     .10000E-03    2.8770        .13434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    2.2409        .11858E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    15.565        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.7999        .15482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.685        14.946        .82309E-04   -1.4734    
   9  Prefactor     8.0058        9.4841        .14173E-03   -1.5142    
  10  norm          2.3471        .83115        .42655E-04   -1.5402    
  11  norm          2.2275        1.3921        .73321E-04   -1.5409    
  12  Prefactor     .10000E-03    51.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.896        10.292        .80292E-04   -1.4710    
  14  norm          .10000E-03    .70531        .66594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9588        .13654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.745        .24257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .70881        .40543        .38027E-04   -1.5540    
  18  Prefactor     .10000E-03    17.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1826        8.3957        .14967E-03   -1.5172    
  20  Prefactor     .10000E-03    23.034        .30397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.9662        3.0287        .90172E-04   -1.5180    
  22  Prefactor     .10000E-03    17.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .81577        .16877        .22051E-03   -.99486    
  24  Prefactor     .70169        .15356        .22196E-03   -1.0346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24234e-10
Minuit parameter uncertainties:
  1  40.3392
  2  0.231224
  3  3.54026e-05
  4  0.000185761
  5  2.20523e-06
  6  1.73166e-05
  7  9.98623e-07
  8  14.9483
  9  9.48588
  10  0.831155
  11  1.39211
  12  4.27537e-05
  13  10.2923
  14  5.09287e-07
  15  4.32628e-07
  16  0.000261505
  17  0.405431
  18  7.16318e-06
  19  8.39703
  20  8.02274e-05
  21  3.02877
  22  2.72512e-05
  23  0.168875
  24  0.153657
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  4.275e-05  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:  7.017e-01  1.537e-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.158e-01  1.689e-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: 6.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.33e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445238/likelihoodResults_598060801_598320001_4FGL_J2243.8-2510_daily_bin1384.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) = 6615.46290782
delta logL = -9.17095831028e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6615.46281632
delta logL = -2.08791789191e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6445       1.0000          .0000       10.000    
     3 'Normalizat'    .81578       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70169       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=   6615.463     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      274 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    92.841        .18142E-02** at limit **
   2  Index         2.7072        6.2717        .50000       -.13866E-04
   3  Normalizat    .81577        .16076        .22051E-03    .99194E-04
   4  Prefactor     .70169        .15194        .22196E-03    .12400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.70721
  Normalizat = 0.815768
  Prefactor  = 0.701686
 **********
 **   18 **HESSE 
 **********

 FCN=   6615.463     FROM HESSE     STATUS=OK            29 CALLS      303 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    51.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7072        6.3446        .50000       -.47637    
   3  Normalizat    .81577        .16093        .88204E-05   -.99486    
   4  Prefactor     .70169        .15210        .88783E-05   -1.0346    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54923e-10
Minuit parameter uncertainties:
  1  0.00147794
  2  4.48583
  3  0.161025
  4  0.15219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445238': 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) = 6615.46281611
delta logL = 1.53431756189e-09

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.478e-03  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.707e+00  4.486e+00  0.000e+00  1.000e+01 (-1.000e+00)
270        Scale:  6.765e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  7.017e-01  1.522e-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.158e-01  1.610e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/445238/cmap_HighResolution_598060801_598320001_4FGL_J2243.8-2510_daily_bin1384.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.33e-03', job_status='DONE', photon_flux_upper_limit='6.76e-08', time_completed='2021-09-28 19:15:03.751296', job_id='445238', GAL2='0.70', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1632881703.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='1.53e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1384' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:15:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 445238: <4FGL_J2243.8-2510_daily_bin1384> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1384 340.957 -25.1701 598060801 598320001 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 :                                   637.16 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

