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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1006
RA = 340.957, Dec = -25.1701
tmin = 500083201, tmax = 500342401
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='443603', job_status='RUN', time_executed='2021-09-28 18:57:04.108698', time_epoch_executed='1632880624.11' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443603

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443603/ft1_4FGL_J2243.8-2510_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443603/ft2_4FGL_J2243.8-2510_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443603/ft1_4FGL_J2243.8-2510_daily_bin1006.fits outfile=/scratch/kocevski/443603/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1006.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=500083201.0 tmax=500342401.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.65
user 5.37
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/443603/ft2_4FGL_J2243.8-2510_daily_bin1006.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/443603/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/443603/ft1_filtered_4FGL_J2243.8-2510_daily_bin1006.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/443603/ft1_filtered_4FGL_J2243.8-2510_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/443603/ft2_4FGL_J2243.8-2510_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/443603/ltcube_500083201_500342401_4FGL_J2243.8-2510_daily_bin1006.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/443603/ft2_4FGL_J2243.8-2510_daily_bin1006.fits
.....................!
real 11.95
user 11.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443603/ft1_filtered_4FGL_J2243.8-2510_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/443603/ft2_4FGL_J2243.8-2510_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/443603/ltcube_500083201_500342401_4FGL_J2243.8-2510_daily_bin1006.fits outfile=/scratch/kocevski/443603/expmap_500083201_500342401_4FGL_J2243.8-2510_daily_bin1006.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/443603/ltcube_500083201_500342401_4FGL_J2243.8-2510_daily_bin1006.fits
.....................!
real 190.17
user 185.00
sys 4.80

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/443603/ft1_filtered_4FGL_J2243.8-2510_daily_bin1006.fits scfile=/scratch/kocevski/443603/ft2_4FGL_J2243.8-2510_daily_bin1006.fits outfile=/scratch/kocevski/443603/cmap_500083201_500342401_4FGL_J2243.8-2510_daily_bin1006.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.57
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443603/ft1_filtered_4FGL_J2243.8-2510_daily_bin1006.fits scfile=/scratch/kocevski/443603/ft2_4FGL_J2243.8-2510_daily_bin1006.fits outfile=/scratch/kocevski/443603/cmap_HighResolution_500083201_500342401_4FGL_J2243.8-2510_daily_bin1006.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/443603/ft1_filtered_4FGL_J2243.8-2510_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/443603/ft2_4FGL_J2243.8-2510_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443603/Model_4FGL_J2243.8-2510_daily_bin1006.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/443603/ft1_filtered_4FGL_J2243.8-2510_daily_bin1006.fits.....................!
real 37.30
user 35.99
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .18964E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.0826       1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.598       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.082       1.0000         .10000E-03   10000.    
     6 'Prefactor '    85.089       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.9513       1.0000         .10000E-03   10000.    
    11 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10375E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .52981       1.0000         .10000E-03   10000.    
    18 'Prefactor '    210.39       1.0000         .10000E-03   10000.    
    19 'Prefactor '    56.027       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .90363       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=   3317.012     FROM MIGRAD    STATUS=CONVERGED    554 CALLS     2737 TOTAL
                     EDM=   .36E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    247.73        .11361E-04** at limit **
   2  norm          .10000E-03    .14545        .70503E-08** at limit **
   3  Prefactor     7.0810        12.282        .56372E-07   -.85687E-04
   4  Prefactor     69.604        31.457       -.44927E-06   -.14710E-04
   5  Prefactor     26.089        18.375        .18759E-05   -.11483E-05
   6  Prefactor     85.100        74.365        .71200E-05   -.24574E-06
   7  norm          .10000E-03    9.6615       -.30391E-09** at limit **
   8  Prefactor     20.737        46.387       -.26715E-04   -.73128E-05
   9  Prefactor     .10000E-03    16.734        .13442E-07** at limit **
  10  norm          1.9516        1.5907       -.13493E-06   -.20428E-03
  11  norm          .10000E-03    1.7112        .11656E-07** at limit **
  12  Prefactor     .10000E-03    83.054       -.10004E-05** at limit **
  13  Prefactor     .10000E-03    44.607        .16534E-06** at limit **
  14  norm          .10000E-03    2.8940        .27247E-08** at limit **
  15  Prefactor     .10000E-03    7.4703       -.49241E-09** at limit **
  16  Prefactor     .10000E-03    5.8903       -.12419E-07** at limit **
  17  norm          .52944        .76693       -.53648E-07   -.59910E-03
  18  Prefactor     210.46        251.87        .47145E-04    .21645E-06
  19  Prefactor     56.039        36.787        .24965E-06   -.31291E-05
  20  Prefactor     .10000E-03    11.069       -.19613E-07** at limit **
  21  norm          .10000E-03    10.332        .39501E-07** at limit **
  22  Prefactor     .10000E-03    33.013       -.11868E-06** at limit **
  23  Normalizat    1.0488        .29198       -.11460E-05   -.15898E-05
  24  Prefactor     .90405        .23968       -.29819E-07   -.39643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.08099
  Prefactor  = 69.604
  Prefactor  = 26.089
  Prefactor  = 85.1
  norm       = 0.0001
  Prefactor  = 20.7372
  Prefactor  = 0.0001
  norm       = 1.95162
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.529438
  Prefactor  = 210.461
  Prefactor  = 56.0393
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.04884
  Prefactor  = 0.904054
 **********
 **   18 **HESSE 
 **********

 FCN=   3317.012     FROM HESSE     STATUS=OK           397 CALLS     3134 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    249.40        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .16300        .42797E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.0810        12.267        .15073E-03   -1.5176    
   4  Prefactor     69.604        31.503        .48116E-04   -1.4037    
   5  Prefactor     26.089        18.446        .78439E-04   -1.4686    
   6  Prefactor     85.100        74.325        .43550E-04   -1.3860    
   7  norm          .10000E-03    9.6651        .17486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     20.737        46.464        .87857E-04   -1.4797    
   9  Prefactor     .10000E-03    16.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.9516        1.5848        .62319E-04   -1.5429    
  11  norm          .10000E-03    1.7497        .73552E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    83.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    45.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    2.9047        .95645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.4720        .15374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8980        .13643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .52944        .71235        .58512E-03   -1.5562    
  18  Prefactor     210.46        252.14        .13936E-03   -1.2796    
  19  Prefactor     56.039        36.830        .53592E-04   -1.4209    
  20  Prefactor     .10000E-03    11.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    10.552        .18076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    33.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0488        .35170        .28562E-03   -.91412    
  24  Prefactor     .90405        .28788        .25625E-03   -.96000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.38293e-11
Minuit parameter uncertainties:
  1  0.000127137
  2  3.3245e-07
  3  12.2714
  4  31.5103
  5  18.45
  6  74.4065
  7  2.29236e-06
  8  46.5457
  9  9.11308e-06
  10  1.58485
  11  1.74046e-06
  12  4.39038e-05
  13  0.000124962
  14  1.21834e-06
  15  1.21478e-06
  16  1.4039e-07
  17  0.712365
  18  253.455
  19  36.8451
  20  2.39602e-06
  21  9.52117e-06
  22  9.07444e-07
  23  0.352483
  24  0.288362
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  4.390e-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:  9.041e-01  2.884e-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.049e+00  3.525e-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: 1.53e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443603/likelihoodResults_500083201_500342401_4FGL_J2243.8-2510_daily_bin1006.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) = 3317.01194311
delta logL = -5.70169681851e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3317.01188662
delta logL = -5.26473741047e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10632E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.3991       1.0000          .0000       10.000    
     3 'Normalizat'    1.0488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90405       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=   3317.012     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      278 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2031.6        .18142E-01** at limit **
   2  Index         2.5271        5.1195        .85318E-01    .13325E-09
   3  Normalizat    1.0488        .35997E-01    .28562E-03   -.45794E-04
   4  Prefactor     .90406        .30389E-01    .25625E-03   -.55722E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.52706
  Normalizat = 1.04884
  Prefactor  = 0.904055
 **********
 **   18 **HESSE 
 **********

 FCN=   3317.012     FROM HESSE     STATUS=OK            23 CALLS      301 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    88.177        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5271        8.3545        .34127E-02   -.51736    
   3  Normalizat    1.0488        .33621        .11425E-04   -.91412    
   4  Prefactor     .90406        .28399        .10250E-04   -.96000    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34522e-11
Minuit parameter uncertainties:
  1  0.000455961
  2  894.406
  3  0.336899
  4  0.284454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443603': 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) = 3317.01188608
delta logL = 2.02248884307e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  9.041e-01  2.845e-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.049e+00  3.369e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/443603/cmap_HighResolution_500083201_500342401_4FGL_J2243.8-2510_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.21e-02', job_status='DONE', photon_flux_upper_limit='1.53e-07', time_completed='2021-09-28 19:05:18.299713', job_id='443603', GAL2='0.90', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632881118.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.02e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1006' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:05:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 443603: <4FGL_J2243.8-2510_daily_bin1006> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1006> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:55:44 2021
Job was executed on host(s) <bullet0282>, 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:05:18 2021
Results reported at Tue Sep 28 19:05:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1006 340.957 -25.1701 500083201 500342401 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 :                                   491.33 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             279.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   573 sec.
    Turnaround time :                            574 sec.

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

