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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin685
RA = 340.957, Dec = -25.1701
tmin = 416880001, tmax = 417139201
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='442137', job_status='RUN', time_executed='2021-09-28 18:51:23.580886', time_epoch_executed='1632880283.58' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='685'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/442137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/442137/ft1_4FGL_J2243.8-2510_daily_bin685.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/442137/ft2_4FGL_J2243.8-2510_daily_bin685.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/442137/ft1_4FGL_J2243.8-2510_daily_bin685.fits outfile=/scratch/kocevski/442137/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin685.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=416880001.0 tmax=417139201.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.31
user 5.02
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/442137/ft1_filtered_4FGL_J2243.8-2510_daily_bin685.fits" evtable="EVENTS" scfile=/scratch/kocevski/442137/ft2_4FGL_J2243.8-2510_daily_bin685.fits sctable="SC_DATA" outfile=/scratch/kocevski/442137/ltcube_416880001_417139201_4FGL_J2243.8-2510_daily_bin685.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/442137/ft2_4FGL_J2243.8-2510_daily_bin685.fits
.....................!
real 12.09
user 11.73
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/442137/ft1_filtered_4FGL_J2243.8-2510_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/442137/ft2_4FGL_J2243.8-2510_daily_bin685.fits sctable="SC_DATA" expcube=/scratch/kocevski/442137/ltcube_416880001_417139201_4FGL_J2243.8-2510_daily_bin685.fits outfile=/scratch/kocevski/442137/expmap_416880001_417139201_4FGL_J2243.8-2510_daily_bin685.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/442137/ltcube_416880001_417139201_4FGL_J2243.8-2510_daily_bin685.fits
.....................!
real 190.20
user 185.11
sys 4.74

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/442137/ft1_filtered_4FGL_J2243.8-2510_daily_bin685.fits scfile=/scratch/kocevski/442137/ft2_4FGL_J2243.8-2510_daily_bin685.fits outfile=/scratch/kocevski/442137/cmap_416880001_417139201_4FGL_J2243.8-2510_daily_bin685.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/442137/ft1_filtered_4FGL_J2243.8-2510_daily_bin685.fits scfile=/scratch/kocevski/442137/ft2_4FGL_J2243.8-2510_daily_bin685.fits outfile=/scratch/kocevski/442137/cmap_HighResolution_416880001_417139201_4FGL_J2243.8-2510_daily_bin685.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.75
user 0.37
sys 0.37

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/442137/ft1_filtered_4FGL_J2243.8-2510_daily_bin685.fits evtable="EVENTS" scfile=/scratch/kocevski/442137/ft2_4FGL_J2243.8-2510_daily_bin685.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/442137/Model_4FGL_J2243.8-2510_daily_bin685.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/442137/ft1_filtered_4FGL_J2243.8-2510_daily_bin685.fits.....................!
real 32.75
user 31.41
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10701E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0635       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.028       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.4635       1.0000         .10000E-03   10000.    
     6 'Prefactor '    162.20       1.0000         .10000E-03   10000.    
     7 'norm      '    50.780       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    26.775       1.0000         .10000E-03   10000.    
    10 'norm      '    2.1809       1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.421       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24430E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    9.3276       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.783       1.0000         .10000E-03   10000.    
    16 'Prefactor '    38.740       1.0000         .10000E-03   10000.    
    17 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    314.87       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.546       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .39514       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .35253       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.5499       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=   2937.765     FROM MIGRAD    STATUS=CONVERGED    534 CALLS     2784 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    178.28       -.34279E-04** at limit **
   2  norm          1.0634        .53588        .26441E-10   -.38603E-03
   3  Prefactor     14.027        13.948       -.26235E-05   -.99502E-04
   4  Prefactor     .10000E-03    10.988        .39557E-07** at limit **
   5  Prefactor     7.4617        12.008       -.18467E-05   -.12938E-03
   6  Prefactor     162.24        104.07        .23526E-04   -.36904E-04
   7  norm          50.761        52.743       -.93599E-05   -.63986E-04
   8  Prefactor     .10000E-03    17.188        .44726E-06** at limit **
   9  Prefactor     26.776        31.086        .89532E-05   -.61375E-04
  10  norm          2.1806        1.8130       -.86276E-06   -.73543E-03
  11  norm          .10000E-03    3.3230        .81718E-06** at limit **
  12  Prefactor     20.367        263.06       -.10949E-03   -.36699E-04
  13  Prefactor     .10000E-03    114.42        .59239E-04** at limit **
  14  norm          9.3261        11.987       -.16134E-06   -.19025E-03
  15  Prefactor     13.817        47.126        .34344E-04   -.28540E-04
  16  Prefactor     38.744        33.275       -.69296E-05   -.25160E-03
  17  norm          .10000E-03    .61936       -.55874E-08** at limit **
  18  Prefactor     314.86        251.53       -.75753E-05   -.10175E-03
  19  Prefactor     13.538        28.301       -.65407E-06   -.51747E-04
  20  Prefactor     .10000E-03    22.705        .86791E-06** at limit **
  21  norm          .36473        8.9167       -.29670E-05    .18331E-03
  22  Prefactor     .10000E-03    94.985       -.30705E-04** at limit **
  23  Normalizat    .35270        .42073        .20936E-04   -.53999E-04
  24  Prefactor     1.5499        .34829       -.60802E-05   -.80685E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.06342
  Prefactor  = 14.0271
  Prefactor  = 0.0001
  Prefactor  = 7.46171
  Prefactor  = 162.239
  norm       = 50.7612
  Prefactor  = 0.0001
  Prefactor  = 26.7763
  norm       = 2.18063
  norm       = 0.000100002
  Prefactor  = 20.3668
  Prefactor  = 0.000100001
  norm       = 9.32611
  Prefactor  = 13.8174
  Prefactor  = 38.744
  norm       = 0.0001
  Prefactor  = 314.86
  Prefactor  = 13.5379
  Prefactor  = 0.0001
  norm       = 0.364728
  Prefactor  = 0.0001
  Normalizat = 0.352696
  Prefactor  = 1.54987
 **********
 **   18 **HESSE 
 **********

 FCN=   2937.765     FROM HESSE     STATUS=OK           395 CALLS     3179 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    178.69        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0634        .53597        .27213E-04   -1.5502    
   3  Prefactor     14.027        13.948        .10694E-03   -1.4959    
   4  Prefactor     .10000E-03    10.996        .17549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.4617        11.981        .14680E-03   -1.5162    
   6  Prefactor     162.24        103.72        .15833E-03   -1.3154    
   7  norm          50.761        52.707        .56278E-04   -1.4282    
   8  Prefactor     .10000E-03    17.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     26.776        30.831        .77421E-04   -1.4673    
  10  norm          2.1806        1.8088        .62613E-04   -1.5413    
  11  norm          .10000E-03    3.3417        .96421E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.367        261.55        .88633E-04   -1.4805    
  13  Prefactor     .10000E-03    116.04        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          9.3261        11.968        .13122E-03   -1.5097    
  15  Prefactor     13.817        47.006        .10789E-03   -1.4964    
  16  Prefactor     38.744        32.946        .64396E-04   -1.4462    
  17  norm          .10000E-03    .62080        .41380E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     314.86        250.90        .11453E-03   -1.2140    
  19  Prefactor     13.538        28.293        .10883E-03   -1.4972    
  20  Prefactor     .10000E-03    22.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .36473        26.667        .31363E-02   -1.5587    
  22  Prefactor     .10000E-03    94.993        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .35270        .41384        .50534E-03   -1.1982    
  24  Prefactor     1.5499        .35963        .22440E-03   -.76153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.64235e-09
Minuit parameter uncertainties:
  1  4.29475e-05
  2  0.535975
  3  13.9514
  4  3.82507e-06
  5  11.9852
  6  103.836
  7  52.7557
  8  2.34474e-06
  9  30.8488
  10  1.80883
  11  0.000149045
  12  146.768
  13  0.000729474
  14  11.971
  15  47.1323
  16  32.9619
  17  7.13889e-07
  18  251.774
  19  28.3207
  20  0.000148287
  21  6.23936
  22  1.03069e-06
  23  0.417503
  24  0.360228
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
526    Prefactor:  1.550e+00  3.602e-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:  3.527e-01  4.175e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 3.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.56e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/442137/likelihoodResults_416880001_417139201_4FGL_J2243.8-2510_daily_bin685.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) = 2937.6331817
delta logL = 0.131578342681

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2937.59294741
delta logL = 0.171812632078

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3472       1.0000         .10000E-03   10000.    
     2 'Index     '    4.3621       1.0000          .0000       10.000    
     3 'Normalizat'    .28568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.5896       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=   2937.593     FROM MIGRAD    STATUS=FAILED        85 CALLS      295 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3443        1112.2        .13876E-03   -.78053E-03
   2  Index         4.3631        5.1684        .79653E-02   -.27240E-03
   3  Normalizat    .28483        .34752        .55930E-03   -.44351E-03
   4  Prefactor     1.5903        .30330        .22178E-03   -.11115E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2937.593     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      382 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3443        1112.2        .32453E-03   -.78053E-03
   2  Index         4.3631        5.1684        .16275E-02   -.27240E-03
   3  Normalizat    .28483        .34752        .89754E-03   -.44351E-03
   4  Prefactor     1.5903        .30330        .33998E-03   -.11115E-02
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2937.593     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      413 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3421        56.007        .55503E-05   -.47316E-04
   2  Index         4.3632        2.8792        .31861E-03   -.11186E-04
   3  Normalizat    .28483        .39983        .22372E-04   -.27441E-05
   4  Prefactor     1.5903        .34729        .44356E-04   -.26707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.34208
  Index      = 4.36325
  Normalizat = 0.284831
  Prefactor  = 1.59032
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3421        52.589        .11101E-05   -1.5130    
   2  Index         4.3632        2.8012        .12744E-04   -.12770    
   3  Normalizat    .28483        .40018        .44744E-05   -1.2375    
   4  Prefactor     1.5903        .34757        .88712E-05   -.75041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10721e-11
Minuit parameter uncertainties:
  1  41.9445
  2  2.97671
  3  0.404287
  4  0.348099
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/442137': 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) = 2937.59294496
delta logL = 0.171815083314

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  8.342e+00  4.194e+01  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  4.363e+00  2.977e+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:  1.590e+00  3.481e-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:  2.848e-01  4.043e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/442137/cmap_HighResolution_416880001_417139201_4FGL_J2243.8-2510_daily_bin685.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.56e-02', job_status='DONE', photon_flux_upper_limit='3.24e-07', time_completed='2021-09-28 18:59:17.482840', job_id='442137', GAL2='1.59', fit_tolerance='1e-08', EG2='0.28', EG='0.35', time_epoch_completed='1632880757.48', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.55', dlogl='1.72e-01', ts2='0.42', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='685' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:59:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 442137: <4FGL_J2243.8-2510_daily_bin685> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin685> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 18:51:02 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:51:03 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:51:03 2021
Terminated at Tue Sep 28 18:59:18 2021
Results reported at Tue Sep 28 18:59:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin685 340.957 -25.1701 416880001 417139201 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 :                                   471.35 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             291.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   494 sec.
    Turnaround time :                            496 sec.

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

