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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin275
RA = 340.957, Dec = -25.1701
tmin = 310608001, tmax = 310867201
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='440111', job_status='RUN', time_executed='2021-09-28 18:49:30.200087', time_epoch_executed='1632880170.2' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/440111

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/440111/ft1_4FGL_J2243.8-2510_daily_bin275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/440111/ft2_4FGL_J2243.8-2510_daily_bin275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/440111/ft1_4FGL_J2243.8-2510_daily_bin275.fits outfile=/scratch/kocevski/440111/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin275.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=310608001.0 tmax=310867201.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.48
user 3.27
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/440111/ft1_filtered_4FGL_J2243.8-2510_daily_bin275.fits" evtable="EVENTS" scfile=/scratch/kocevski/440111/ft2_4FGL_J2243.8-2510_daily_bin275.fits sctable="SC_DATA" outfile=/scratch/kocevski/440111/ltcube_310608001_310867201_4FGL_J2243.8-2510_daily_bin275.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/440111/ft2_4FGL_J2243.8-2510_daily_bin275.fits
.....................!
real 11.89
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/440111/ft1_filtered_4FGL_J2243.8-2510_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/440111/ft2_4FGL_J2243.8-2510_daily_bin275.fits sctable="SC_DATA" expcube=/scratch/kocevski/440111/ltcube_310608001_310867201_4FGL_J2243.8-2510_daily_bin275.fits outfile=/scratch/kocevski/440111/expmap_310608001_310867201_4FGL_J2243.8-2510_daily_bin275.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/440111/ltcube_310608001_310867201_4FGL_J2243.8-2510_daily_bin275.fits
.....................!
real 188.78
user 184.52
sys 3.90

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

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

This is gtbin version HEAD
real 0.52
user 0.40
sys 0.11

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/440111/ft1_filtered_4FGL_J2243.8-2510_daily_bin275.fits scfile=/scratch/kocevski/440111/ft2_4FGL_J2243.8-2510_daily_bin275.fits outfile=/scratch/kocevski/440111/cmap_HighResolution_310608001_310867201_4FGL_J2243.8-2510_daily_bin275.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.50
user 0.36
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/440111/ft1_filtered_4FGL_J2243.8-2510_daily_bin275.fits evtable="EVENTS" scfile=/scratch/kocevski/440111/ft2_4FGL_J2243.8-2510_daily_bin275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/440111/Model_4FGL_J2243.8-2510_daily_bin275.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/440111/ft1_filtered_4FGL_J2243.8-2510_daily_bin275.fits.....................!
real 53.53
user 52.16
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11179E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.8702       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89156E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.505       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    46.062       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.5187       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0531       1.0000         .10000E-03   10000.    
    11 'norm      '    .16108E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.455       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4714       1.0000         .10000E-03   10000.    
    14 'norm      '    6.5519       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.2579       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.1114       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12904E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0967       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .84945       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=   6492.131     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     2757 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    169.52       -.21955E-05** at limit **
   2  norm          2.8702        .54039       -.56061E-08    .28705E-03
   3  Prefactor     .10000E-03    5.6596       -.21125E-06** at limit **
   4  Prefactor     27.515        19.285        .66212E-06   -.19483E-03
   5  Prefactor     .10000E-03    4.5662        .79767E-07** at limit **
   6  Prefactor     .10000E-03    16.315        .54149E-06** at limit **
   7  norm          .10000E-03    10.761        .12001E-07** at limit **
   8  Prefactor     46.064        25.457       -.30629E-06    .78681E-04
   9  Prefactor     1.5198        8.2192       -.92980E-06   -.36548E-03
  10  norm          2.0532        .91970       -.45617E-07    .28446E-03
  11  norm          .10001E-03    1.5479        .20320E-05** at limit **
  12  Prefactor     35.400        36.170       -.10039E-04    .19750E-03
  13  Prefactor     8.4740        9.9201       -.13053E-06   -.94547E-04
  14  norm          6.5510        4.1835        .67752E-07   -.56904E-03
  15  Prefactor     .10000E-03    9.4351       -.33676E-06** at limit **
  16  Prefactor     .10001E-03    5.2443        .97734E-06** at limit **
  17  norm          2.2571        .81405       -.30917E-07   -.24957E-02
  18  Prefactor     .10000E-03    95.601       -.22207E-05** at limit **
  19  Prefactor     .10000E-03    5.0504       -.31960E-06** at limit **
  20  Prefactor     .10000E-03    10.904        .26500E-06** at limit **
  21  norm          2.1105        3.4646       -.68826E-06   -.20310E-03
  22  Prefactor     .10004E-03    162.53        .94977E-05** at limit **
  23  Normalizat    1.0968        .18798        .25242E-06   -.19725E-03
  24  Prefactor     .84928        .16551        .31790E-07   -.15962E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 2.87017
  Prefactor  = 0.0001
  Prefactor  = 27.5154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.0636
  Prefactor  = 1.51979
  norm       = 2.05322
  norm       = 0.000100005
  Prefactor  = 35.4003
  Prefactor  = 8.47398
  norm       = 6.55097
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.25711
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.1105
  Prefactor  = 0.000100036
  Normalizat = 1.09683
  Prefactor  = 0.84928
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.131     FROM HESSE     STATUS=OK           391 CALLS     3148 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    170.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.8702        .54097        .24915E-04   -1.5369    
   3  Prefactor     .10000E-03    48.872        .35993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.515        19.017        .76387E-04   -1.4658    
   5  Prefactor     .10000E-03    4.5967        .16810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    10.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     46.064        25.470        .59077E-04   -1.4350    
   9  Prefactor     1.5198        8.3918        .34677E-03   -1.5461    
  10  norm          2.0532        .91845        .49842E-04   -1.5421    
  11  norm          .10001E-03    4.1439        .18527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     35.400        35.541        .67303E-04   -1.4517    
  13  Prefactor     8.4740        9.9386        .13773E-03   -1.5126    
  14  norm          6.5510        4.1567        .12436E-03   -1.5196    
  15  Prefactor     .10000E-03    9.4502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    20.712        .31396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.2571        .74916        .37827E-04   -1.5407    
  18  Prefactor     .10000E-03    95.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.0999        .17679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.1105        3.4665        .18605E-03   -1.5417    
  22  Prefactor     .10004E-03    162.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0968        .22228        .25408E-03   -.89854    
  24  Prefactor     .84928        .19687        .25799E-03   -.97937    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74397e-09
Minuit parameter uncertainties:
  1  0.00121701
  2  0.540972
  3  0.000170585
  4  19.021
  5  6.61184e-06
  6  9.33851e-05
  7  2.01405e-05
  8  25.4764
  9  7.14381
  10  0.918461
  11  0.000301331
  12  35.5626
  13  9.94055
  14  4.15686
  15  6.29086e-05
  16  0.000646432
  17  0.749165
  18  0.000944073
  19  3.19236e-05
  20  4.828e-06
  21  3.46688
  22  0.00486758
  23  0.222474
  24  0.197031
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  3.540e+01  3.556e+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:  8.493e-01  1.970e-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.097e+00  2.225e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 340.957 -25.170
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 8.79e-06 +/- 8.82e-06

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

Saving results to:
/scratch/kocevski/440111/likelihoodResults_310608001_310867201_4FGL_J2243.8-2510_daily_bin275.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) = 6492.06383817
delta logL = 0.0673529788946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6492.06120592
delta logL = 0.0699852254811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.531       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0616       1.0000          .0000       10.000    
     3 'Normalizat'    1.0858       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85633       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=   6492.061     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      233 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.485        576.30        .19444E-02    .15154E-03
   2  Index         3.0631        6.5066        .21969        .12560E-03
   3  Normalizat    1.0858        .58460E-01    .57704E-01   -.13059E-03
   4  Prefactor     .85632        .50350E-01    .44446E-01    .48152E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.4847
  Index      = 3.06309
  Normalizat = 1.08577
  Prefactor  = 0.856317
 **********
 **   18 **HESSE 
 **********

 FCN=   6492.061     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.485        41.848        .77774E-04   -1.4678    
   2  Index         3.0631        1.1100        .77402E-02   -.39779    
   3  Normalizat    1.0858        .21809        .25518E-03   -.90210    
   4  Prefactor     .85632        .19567        .25704E-03   -.97685    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53175e-10
Minuit parameter uncertainties:
  1  41.8939
  2  1.12104
  3  0.218273
  4  0.195834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/440111': 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) = 6492.06120482
delta logL = 0.0699863307927

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  2.648e+01  4.189e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.063e+00  1.121e+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:  8.563e-01  1.958e-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.086e+00  2.183e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.66
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 3.06 +/- 1.12
Photon Flux (Free Index): 4.49e-08 +/- 4.39e-08
Energy Flux (Free Index): 8.70e-06 +/- 8.22e-06

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/440111/cmap_HighResolution_310608001_310867201_4FGL_J2243.8-2510_daily_bin275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.36e-03', comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='8.70e-06', photon_flux_error='3.68e-08', dlogl='7.00e-02', energy_flux='8.79e-06', photon_flux2='4.49e-08', job_status='DONE', time_completed='2021-09-28 19:00:35.414471', photon_index_error2='1.12', photon_index2='3.06', ts='1.51', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.19e-07', energy_flux_error2='8.22e-06', EG='1.10', time_epoch_completed='1632880835.41', return_code='0', job_id='440111', GAL2='0.86', EG2='1.09', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='4.39e-08', ts2='1.66', photon_index='2.71' WHERE bin_id='275' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:00:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0138>
Subject: Job 440111: <4FGL_J2243.8-2510_daily_bin275> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin275> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:45:36 2021
Job was executed on host(s) <bullet0138>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:45: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:45:38 2021
Terminated at Tue Sep 28 19:00:36 2021
Results reported at Tue Sep 28 19:00:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin275 340.957 -25.1701 310608001 310867201 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 :                                   665.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   897 sec.
    Turnaround time :                            900 sec.

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

