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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin396
RA = 340.957, Dec = -25.1701
tmin = 341971201, tmax = 342230401
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='441679', job_status='RUN', time_executed='2021-09-28 18:54:08.066525', time_epoch_executed='1632880448.07' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='396'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/441679

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/441679/ft1_4FGL_J2243.8-2510_daily_bin396.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/441679/ft2_4FGL_J2243.8-2510_daily_bin396.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/441679/ft1_4FGL_J2243.8-2510_daily_bin396.fits outfile=/scratch/kocevski/441679/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin396.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=341971201.0 tmax=342230401.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.44
user 3.18
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/441679/ft1_filtered_4FGL_J2243.8-2510_daily_bin396.fits" evtable="EVENTS" scfile=/scratch/kocevski/441679/ft2_4FGL_J2243.8-2510_daily_bin396.fits sctable="SC_DATA" outfile=/scratch/kocevski/441679/ltcube_341971201_342230401_4FGL_J2243.8-2510_daily_bin396.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/441679/ft2_4FGL_J2243.8-2510_daily_bin396.fits
.....................!
real 14.77
user 14.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/441679/ft1_filtered_4FGL_J2243.8-2510_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/441679/ft2_4FGL_J2243.8-2510_daily_bin396.fits sctable="SC_DATA" expcube=/scratch/kocevski/441679/ltcube_341971201_342230401_4FGL_J2243.8-2510_daily_bin396.fits outfile=/scratch/kocevski/441679/expmap_341971201_342230401_4FGL_J2243.8-2510_daily_bin396.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/441679/ltcube_341971201_342230401_4FGL_J2243.8-2510_daily_bin396.fits
.....................!
real 190.09
user 185.13
sys 4.61

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/441679/ft1_filtered_4FGL_J2243.8-2510_daily_bin396.fits scfile=/scratch/kocevski/441679/ft2_4FGL_J2243.8-2510_daily_bin396.fits outfile=/scratch/kocevski/441679/cmap_341971201_342230401_4FGL_J2243.8-2510_daily_bin396.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/441679/ft1_filtered_4FGL_J2243.8-2510_daily_bin396.fits scfile=/scratch/kocevski/441679/ft2_4FGL_J2243.8-2510_daily_bin396.fits outfile=/scratch/kocevski/441679/cmap_HighResolution_341971201_342230401_4FGL_J2243.8-2510_daily_bin396.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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/441679/ft1_filtered_4FGL_J2243.8-2510_daily_bin396.fits evtable="EVENTS" scfile=/scratch/kocevski/441679/ft2_4FGL_J2243.8-2510_daily_bin396.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/441679/Model_4FGL_J2243.8-2510_daily_bin396.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/441679/ft1_filtered_4FGL_J2243.8-2510_daily_bin396.fits.....................!
real 55.44
user 54.06
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    32.447       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1398       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5784       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7293       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8520       1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5497       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4227       1.0000         .10000E-03   10000.    
    11 'norm      '    2.2233       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.0468       1.0000         .10000E-03   10000.    
    14 'norm      '    10.082       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .17456E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10272E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .35762       1.0000         .10000E-03   10000.    
    18 'Prefactor '    136.36       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.930       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14079E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .68303       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .99843       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .65518       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=   7147.924     FROM MIGRAD    STATUS=CONVERGED    529 CALLS     2713 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     32.424        53.034       -.10210E-05   -.92610E-04
   2  norm          1.1398        .32551        .67094E-08   -.12105E-03
   3  Prefactor     8.5780        7.9036        .27178E-06    .12481E-05
   4  Prefactor     .10000E-03    5.4742        .65495E-07** at limit **
   5  Prefactor     3.7296        5.0943        .13991E-06   -.36963E-05
   6  Prefactor     9.8494        27.365        .36894E-06   -.18810E-04
   7  norm          .10000E-03    4.7828       -.14941E-06** at limit **
   8  Prefactor     .10000E-03    5.5339        .84185E-07** at limit **
   9  Prefactor     8.5513        7.0262        .32358E-06    .85113E-05
  10  norm          1.4228        .74220        .30695E-07   -.54329E-04
  11  norm          2.2214        2.2893        .12706E-05   -.28429E-04
  12  Prefactor     11.105        37.340       -.94954E-05   -.15654E-03
  13  Prefactor     7.0490        9.2190        .38121E-05    .86254E-04
  14  norm          10.082        4.2487       -.73199E-07    .49453E-03
  15  Prefactor     .10000E-03    4.7575       -.13697E-05** at limit **
  16  Prefactor     .10000E-03    5.9954       -.10718E-05** at limit **
  17  norm          .35748        .46964        .33760E-06    .12478E-02
  18  Prefactor     136.36        74.851       -.73082E-06    .65065E-05
  19  Prefactor     10.930        6.6930        .22836E-07   -.35179E-05
  20  Prefactor     .10002E-03    4.9538        .83892E-06** at limit **
  21  norm          .68320        2.2743        .14069E-05    .35710E-04
  22  Prefactor     .10000E-03    9.9541       -.12660E-06** at limit **
  23  Normalizat    .99827        .15378        .24571E-05   -.23387E-03
  24  Prefactor     .65533        .13715       -.36234E-05    .12288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 32.4237
  norm       = 1.13985
  Prefactor  = 8.57799
  Prefactor  = 0.0001
  Prefactor  = 3.72956
  Prefactor  = 9.84937
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.55133
  norm       = 1.42277
  norm       = 2.22137
  Prefactor  = 11.1054
  Prefactor  = 7.04905
  norm       = 10.0816
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.357475
  Prefactor  = 136.358
  Prefactor  = 10.9298
  Prefactor  = 0.000100016
  norm       = 0.683203
  Prefactor  = 0.0001
  Normalizat = 0.998275
  Prefactor  = 0.65533
 **********
 **   18 **HESSE 
 **********

 FCN=   7147.924     FROM HESSE     STATUS=OK           407 CALLS     3120 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     32.424        53.335        .70344E-04   -1.4569    
   2  norm          1.1398        .32559        .24900E-04   -1.5494    
   3  Prefactor     8.5780        7.8975        .13686E-03   -1.5122    
   4  Prefactor     .10000E-03    5.4891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7296        5.0879        .20910E-03   -1.5322    
   6  Prefactor     9.8494        27.355        .12767E-03   -1.5080    
   7  norm          .10000E-03    4.7866        .18059E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    5.5465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.5513        7.0229        .13709E-03   -1.5123    
  10  norm          1.4228        .73867        .50543E-04   -1.5469    
  11  norm          2.2214        2.3182        .95750E-04   -1.5410    
  12  Prefactor     11.105        38.359        .11997E-03   -1.5041    
  13  Prefactor     7.0490        9.4628        .75560E-03   -1.5177    
  14  norm          10.082        4.1700        .10330E-03   -1.5073    
  15  Prefactor     .10000E-03    15.050        .33717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1302        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .35748        .41108        .57168E-03   -1.5588    
  18  Prefactor     136.36        74.849        .34491E-04   -1.3367    
  19  Prefactor     10.930        6.6936        .12119E-03   -1.5047    
  20  Prefactor     .10002E-03    11.552        .33279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .68320        2.2707        .22378E-03   -1.5543    
  22  Prefactor     .10000E-03    9.9631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .99827        .17713        .21703E-03   -.93088    
  24  Prefactor     .65533        .15687        .24261E-03   -1.0530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56389e-09
Minuit parameter uncertainties:
  1  53.4135
  2  0.32559
  3  7.89845
  4  2.04983e-05
  5  5.08852
  6  27.39
  7  1.1212e-05
  8  1.21993e-05
  9  7.02357
  10  0.738678
  11  2.31833
  12  38.4443
  13  9.46478
  14  4.17017
  15  0.000450356
  16  0.000104136
  17  0.411083
  18  74.9009
  19  6.69405
  20  0.000863451
  21  2.27096
  22  4.88259e-05
  23  0.177229
  24  0.156974
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.111e+01  3.844e+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:  6.553e-01  1.570e-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:  9.983e-01  1.772e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/441679/likelihoodResults_341971201_342230401_4FGL_J2243.8-2510_daily_bin396.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) = 7147.88588712
delta logL = 0.0380366111267

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7147.85006813
delta logL = 0.0738556079377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9313       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7475       1.0000          .0000       10.000    
     3 'Normalizat'    .98755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66237       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5290E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7147.850     FROM MIGRAD    STATUS=FAILED        80 CALLS      242 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9331        674.46        .20346E-03    .12987E-02
   2  Index         3.7471        6.8346        .12164E-01    .31743E-03
   3  Normalizat    .98773        .14038        .21802E-03    .93686E-03
   4  Prefactor     .66221        .12958        .24148E-03    .63261E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7147.850     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      339 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9331        674.46        .25532E-03    .12987E-02
   2  Index         3.7471        6.8346        .10866E-02    .31743E-03
   3  Normalizat    .98773        .14038        .12505E-03    .93686E-03
   4  Prefactor     .66221        .12958        .55779E-04    .63261E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7147.850     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      371 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9339        23.414        .81384E-05    .39952E-04
   2  Index         3.7469        2.8328        .48655E-03    .10141E-04
   3  Normalizat    .98773        .16999        .43603E-04   -.26595E-04
   4  Prefactor     .66221        .15487        .48297E-04   -.32013E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.93392
  Index      = 3.74688
  Normalizat = 0.98773
  Prefactor  = 0.662206
 **********
 **   18 **HESSE 
 **********

 FCN=   7147.850     FROM HESSE     STATUS=OK            23 CALLS      394 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9339        22.051        .16277E-05   -1.5311    
   2  Index         3.7469        2.7589        .19462E-04   -.25332    
   3  Normalizat    .98773        .17004        .87206E-05   -.93443    
   4  Prefactor     .66221        .15490        .96594E-05   -1.0503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07486e-11
Minuit parameter uncertainties:
  1  18.6378
  2  2.9356
  3  0.17013
  4  0.155002
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/441679': 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) = 7147.85006753
delta logL = 0.0738562068682

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  3.934e+00  1.864e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.747e+00  2.936e+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:  6.622e-01  1.550e-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:  9.877e-01  1.701e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/441679/cmap_HighResolution_341971201_342230401_4FGL_J2243.8-2510_daily_bin396.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.13e-03', job_status='DONE', photon_flux_upper_limit='7.79e-08', time_completed='2021-09-28 19:05:51.374500', job_id='441679', GAL2='0.66', fit_tolerance='1e-08', EG2='0.99', EG='1.00', time_epoch_completed='1632881151.37', return_code2='0', ts='0.17', comment='SUCCESS', return_code='0', GAL='0.66', dlogl='7.39e-02', ts2='0.33', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='396' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:05:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 441679: <4FGL_J2243.8-2510_daily_bin396> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin396> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:50:21 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:50:23 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:50:23 2021
Terminated at Tue Sep 28 19:05:52 2021
Results reported at Tue Sep 28 19:05:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin396 340.957 -25.1701 341971201 342230401 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 :                                   703.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

