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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin994
RA = 340.957, Dec = -25.1701
tmin = 496972801, tmax = 497232001
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='443586', job_status='RUN', time_executed='2021-09-28 18:55:55.039626', time_epoch_executed='1632880555.04' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='994'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443586

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443586/ft1_4FGL_J2243.8-2510_daily_bin994.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443586/ft2_4FGL_J2243.8-2510_daily_bin994.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443586/ft1_4FGL_J2243.8-2510_daily_bin994.fits outfile=/scratch/kocevski/443586/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin994.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=496972801.0 tmax=497232001.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.10
user 4.84
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443586/ft1_filtered_4FGL_J2243.8-2510_daily_bin994.fits" evtable="EVENTS" scfile=/scratch/kocevski/443586/ft2_4FGL_J2243.8-2510_daily_bin994.fits sctable="SC_DATA" outfile=/scratch/kocevski/443586/ltcube_496972801_497232001_4FGL_J2243.8-2510_daily_bin994.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/443586/ft2_4FGL_J2243.8-2510_daily_bin994.fits
.....................!
real 12.13
user 11.80
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443586/ft1_filtered_4FGL_J2243.8-2510_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/443586/ft2_4FGL_J2243.8-2510_daily_bin994.fits sctable="SC_DATA" expcube=/scratch/kocevski/443586/ltcube_496972801_497232001_4FGL_J2243.8-2510_daily_bin994.fits outfile=/scratch/kocevski/443586/expmap_496972801_497232001_4FGL_J2243.8-2510_daily_bin994.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/443586/ltcube_496972801_497232001_4FGL_J2243.8-2510_daily_bin994.fits
.....................!
real 190.03
user 185.28
sys 4.42

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/443586/ft1_filtered_4FGL_J2243.8-2510_daily_bin994.fits scfile=/scratch/kocevski/443586/ft2_4FGL_J2243.8-2510_daily_bin994.fits outfile=/scratch/kocevski/443586/cmap_HighResolution_496972801_497232001_4FGL_J2243.8-2510_daily_bin994.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.957 yref=-25.1701 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443586/ft1_filtered_4FGL_J2243.8-2510_daily_bin994.fits evtable="EVENTS" scfile=/scratch/kocevski/443586/ft2_4FGL_J2243.8-2510_daily_bin994.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443586/Model_4FGL_J2243.8-2510_daily_bin994.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/443586/ft1_filtered_4FGL_J2243.8-2510_daily_bin994.fits......................!
real 33.91
user 32.61
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.8878       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.447       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1128       1.0000         .10000E-03   10000.    
     6 'Prefactor '    39.457       1.0000         .10000E-03   10000.    
     7 'norm      '    14.709       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11157E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .44986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.534       1.0000         .10000E-03   10000.    
    14 'norm      '    8.2240       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3445       1.0000         .10000E-03   10000.    
    17 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.740       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.8128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    34.579       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .81181       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .83178       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=   3472.639     FROM MIGRAD    STATUS=CONVERGED    546 CALLS     2725 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    56.894        .10263E-05** at limit **
   2  norm          1.8877        .62408       -.26707E-08   -.57884E-03
   3  Prefactor     .10000E-03    4.2612       -.35804E-07** at limit **
   4  Prefactor     27.433        28.196        .58256E-06   -.61991E-04
   5  Prefactor     4.1129        13.162        .49846E-06   -.95096E-04
   6  Prefactor     39.418        84.276        .42377E-05    .11848E-04
   7  norm          14.708        20.820       -.88710E-07   -.40875E-04
   8  Prefactor     .10000E-03    97.673        .11463E-05** at limit **
   9  Prefactor     .10000E-03    15.000        .11550E-06** at limit **
  10  norm          .10000E-03    .42638       -.68566E-06** at limit **
  11  norm          .45027        2.0263        .19197E-06    .42373E-04
  12  Prefactor     .10000E-03    23.842        .50392E-07** at limit **
  13  Prefactor     25.535        13.783       -.28835E-06   -.12453E-03
  14  norm          8.2277        6.1908       -.19422E-05   -.51274E-03
  15  Prefactor     .10000E-03    7.3233        .71179E-07** at limit **
  16  Prefactor     2.3345        10.686        .94041E-05   -.30185E-03
  17  norm          .10000E-03    .18659        .67078E-07** at limit **
  18  Prefactor     .10000E-03    67.154       -.13861E-05** at limit **
  19  Prefactor     10.736        17.829        .55911E-06   -.16151E-04
  20  Prefactor     .10000E-03    2.8210        .10172E-06** at limit **
  21  norm          5.8126        3.3405        .26831E-07   -.37915E-04
  22  Prefactor     34.576        31.298        .22058E-06   -.12378E-04
  23  Normalizat    .81194        .23130       -.33347E-05   -.94836E-04
  24  Prefactor     .83174        .20026        .10615E-05   -.16971E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.88774
  Prefactor  = 0.0001
  Prefactor  = 27.4327
  Prefactor  = 4.11289
  Prefactor  = 39.4183
  norm       = 14.7076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.450273
  Prefactor  = 0.0001
  Prefactor  = 25.535
  norm       = 8.22775
  Prefactor  = 0.0001
  Prefactor  = 2.3345
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7365
  Prefactor  = 0.0001
  norm       = 5.81263
  Prefactor  = 34.576
  Normalizat = 0.811942
  Prefactor  = 0.831738
 **********
 **   18 **HESSE 
 **********

 FCN=   3472.639     FROM HESSE     STATUS=OK           397 CALLS     3122 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    56.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.8877        .62512        .26025E-04   -1.5433    
   3  Prefactor     .10000E-03    4.2639        .11880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.433        28.232        .76469E-04   -1.4660    
   5  Prefactor     4.1129        13.209        .19878E-03   -1.5302    
   6  Prefactor     39.418        84.489        .63810E-04   -1.4451    
   7  norm          14.708        20.794        .10443E-03   -1.4941    
   8  Prefactor     .10000E-03    99.189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .47250        .77383E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .45027        1.9680        .16062E-03   -1.5574    
  12  Prefactor     .10000E-03    23.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.535        13.842        .79275E-04   -1.4697    
  14  norm          8.2277        6.2384        .99932E-04   -1.5134    
  15  Prefactor     .10000E-03    7.3395        .15571E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3345        11.074        .13387E-02   -1.5402    
  17  norm          .10000E-03    .18981        .24801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    67.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.736        17.843        .12225E-03   -1.5053    
  20  Prefactor     .10000E-03    2.8241        .96673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.8126        3.3412        .78865E-04   -1.5226    
  22  Prefactor     34.576        31.308        .68148E-04   -1.4531    
  23  Normalizat    .81194        .27269        .24411E-03   -.99627    
  24  Prefactor     .83174        .23751        .22567E-03   -.98569    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56725e-09
Minuit parameter uncertainties:
  1  1.57046e-05
  2  0.62512
  3  4.85882e-06
  4  28.246
  5  13.218
  6  84.7473
  7  20.8045
  8  0.000245287
  9  3.12616e-05
  10  3.22269e-05
  11  1.88257
  12  1.45111e-05
  13  13.8438
  14  6.23887
  15  6.35746e-06
  16  10.1718
  17  1.57836e-06
  18  0.000217715
  19  17.852
  20  1.05202e-05
  21  3.34135
  22  31.3227
  23  0.273148
  24  0.237803
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  1.451e-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:  8.317e-01  2.378e-01  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  8.119e-01  2.731e-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: 9.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443586/likelihoodResults_496972801_497232001_4FGL_J2243.8-2510_daily_bin994.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) = 3472.6394236
delta logL = -0.000199596787297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3472.63922562
delta logL = -1.61891375683e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.5289       1.0000          .0000       10.000    
     3 'Normalizat'    .81193       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83174       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=   3472.639     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      267 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10554E-03    9.7719        .18142E-01** at limit **
   2  Index         3.3802        5.5042        .50000        .12881E-04
   3  Normalizat    .81194        .41267E-02    .24411E-03    .60078E-05
   4  Prefactor     .83174        .38814E-02    .22567E-03   -.12443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105539
  Index      = 3.38017
  Normalizat = 0.811941
  Prefactor  = 0.831739
 **********
 **   18 **HESSE 
 **********

 FCN=   3472.639     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      296 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10554E-03    157.90        .22430E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3802        6.0013        .50000       -.32992    
   3  Normalizat    .81194        .16625E-01    .97644E-05   -.99627    
   4  Prefactor     .83174        .15637E-01    .90269E-05   -.98569    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.9097e-09
Minuit parameter uncertainties:
  1  0.0593057
  2  715.592
  3  0.0166248
  4  0.0156368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443586': 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): 102
logL (Free Index) = 3472.63922531
delta logL = -1.30918488139e-06

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.055e-04  5.931e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  3.380e+00  7.156e+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:  8.317e-01  1.564e-02  0.000e+00  1.000e+01 ( 1.000e+00)
527        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
528        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
525   Normalization:  8.119e-01  1.662e-02  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/443586/cmap_HighResolution_496972801_497232001_4FGL_J2243.8-2510_daily_bin994.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', job_status='DONE', photon_flux_upper_limit='9.11e-08', time_completed='2021-09-28 19:04:24.981848', job_id='443586', GAL2='0.83', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1632881064.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='-1.31e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='994' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:04:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 443586: <4FGL_J2243.8-2510_daily_bin994> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin994 340.957 -25.1701 496972801 497232001 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 :                                   506.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             343.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   520 sec.
    Turnaround time :                            522 sec.

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

