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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1297
RA = 340.957, Dec = -25.1701
tmin = 575510401, tmax = 575769601
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='445103', job_status='RUN', time_executed='2021-09-28 19:01:23.633621', time_epoch_executed='1632880883.63' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1297'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445103

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445103/ft1_4FGL_J2243.8-2510_daily_bin1297.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445103/ft2_4FGL_J2243.8-2510_daily_bin1297.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445103/ft1_4FGL_J2243.8-2510_daily_bin1297.fits outfile=/scratch/kocevski/445103/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1297.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=575510401.0 tmax=575769601.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.26
user 5.02
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445103/ft1_filtered_4FGL_J2243.8-2510_daily_bin1297.fits" evtable="EVENTS" scfile=/scratch/kocevski/445103/ft2_4FGL_J2243.8-2510_daily_bin1297.fits sctable="SC_DATA" outfile=/scratch/kocevski/445103/ltcube_575510401_575769601_4FGL_J2243.8-2510_daily_bin1297.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/445103/ft2_4FGL_J2243.8-2510_daily_bin1297.fits
.....................!
real 11.72
user 11.38
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445103/ft1_filtered_4FGL_J2243.8-2510_daily_bin1297.fits evtable="EVENTS" scfile=/scratch/kocevski/445103/ft2_4FGL_J2243.8-2510_daily_bin1297.fits sctable="SC_DATA" expcube=/scratch/kocevski/445103/ltcube_575510401_575769601_4FGL_J2243.8-2510_daily_bin1297.fits outfile=/scratch/kocevski/445103/expmap_575510401_575769601_4FGL_J2243.8-2510_daily_bin1297.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/445103/ltcube_575510401_575769601_4FGL_J2243.8-2510_daily_bin1297.fits
.....................!
real 189.76
user 185.16
sys 4.29

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/445103/ft1_filtered_4FGL_J2243.8-2510_daily_bin1297.fits scfile=/scratch/kocevski/445103/ft2_4FGL_J2243.8-2510_daily_bin1297.fits outfile=/scratch/kocevski/445103/cmap_575510401_575769601_4FGL_J2243.8-2510_daily_bin1297.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/445103/ft1_filtered_4FGL_J2243.8-2510_daily_bin1297.fits scfile=/scratch/kocevski/445103/ft2_4FGL_J2243.8-2510_daily_bin1297.fits outfile=/scratch/kocevski/445103/cmap_HighResolution_575510401_575769601_4FGL_J2243.8-2510_daily_bin1297.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.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .84291       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.743       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.1427       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.150       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.875       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4761       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.6742       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1848       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .72329       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=   7800.976     FROM MIGRAD    STATUS=CONVERGED    540 CALLS     2345 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.309       -.12906E-04** at limit **
   2  norm          .84292        .29878        .16431E-07    .26559E-03
   3  Prefactor     10.743        8.8360       -.34920E-06   -.35757E-06
   4  Prefactor     1.1386        4.9601        .26119E-05   -.11280E-02
   5  Prefactor     .10000E-03    2.2059       -.12715E-06** at limit **
   6  Prefactor     .10000E-03    16.877       -.15358E-04** at limit **
   7  norm          .10000E-03    9.5128        .20886E-05** at limit **
   8  Prefactor     29.150        17.395        .23017E-07    .39253E-04
   9  Prefactor     .10000E-03    3.1282       -.23475E-08** at limit **
  10  norm          .10000E-03    .29273        .79801E-07** at limit **
  11  norm          .10000E-03    .63439        .10534E-08** at limit **
  12  Prefactor     .10000E-03    10.236        .58243E-05** at limit **
  13  Prefactor     .10000E-03    7.5399       -.81584E-05** at limit **
  14  norm          .10000E-03    .91426        .32286E-07** at limit **
  15  Prefactor     .10000E-03    9.1003       -.18052E-05** at limit **
  16  Prefactor     11.865        8.2051       -.82123E-07    .13785E-03
  17  norm          1.4766        .65447       -.12840E-08    .39219E-03
  18  Prefactor     .10000E-03    23.751        .20167E-04** at limit **
  19  Prefactor     .10000E-03    7.1760        .18616E-05** at limit **
  20  Prefactor     .10000E-03    2.5102       -.13138E-06** at limit **
  21  norm          5.6741        2.7904        .58468E-08   -.53029E-04
  22  Prefactor     .10000E-03    7.2199        .39746E-05** at limit **
  23  Normalizat    1.1850        .15287       -.35080E-06    .15596E-03
  24  Prefactor     .72314        .13976        .11218E-06    .68109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.842918
  Prefactor  = 10.7426
  Prefactor  = 1.13855
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.1496
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.8652
  norm       = 1.47665
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.67412
  Prefactor  = 0.0001
  Normalizat = 1.18499
  Prefactor  = 0.72314
 **********
 **   18 **HESSE 
 **********

 FCN=   7800.976     FROM HESSE     STATUS=OK           391 CALLS     2736 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    43.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .84292        .29854        .27908E-04   -1.5524    
   3  Prefactor     10.743        8.9107        .12224E-03   -1.5052    
   4  Prefactor     1.1386        34.737        .21723E-02   -1.5495    
   5  Prefactor     .10000E-03    2.2169        .12809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.5417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     29.150        17.403        .74207E-04   -1.4628    
   9  Prefactor     .10000E-03    3.1379        .15254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .51129        .92691E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.2539        .13691E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.6224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .91684        .82400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1201        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.865        8.6438        .11625E-03   -1.5019    
  17  norm          1.4766        .68373        .37372E-04   -1.5465    
  18  Prefactor     .10000E-03    23.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.2688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5161        .13658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.6741        2.7894        .10052E-03   -1.5232    
  22  Prefactor     .10000E-03    7.2249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1850        .17701        .21996E-03   -.87068    
  24  Prefactor     .72314        .16093        .25321E-03   -1.0263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75389e-08
Minuit parameter uncertainties:
  1  0.000155727
  2  0.298544
  3  8.91177
  4  12.5853
  5  6.0986e-07
  6  0.000143891
  7  1.49587e-05
  8  17.4057
  9  7.08615e-07
  10  2.73517e-06
  11  7.72769e-07
  12  4.46137e-05
  13  9.03409e-06
  14  1.04811e-06
  15  8.06748e-07
  16  8.64469
  17  0.683729
  18  0.000230715
  19  6.3041e-06
  20  1.41852e-06
  21  2.78942
  22  2.50694e-05
  23  0.177101
  24  0.161033
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  4.461e-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:  7.231e-01  1.610e-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.185e+00  1.771e-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: 4.70e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445103/likelihoodResults_575510401_575769601_4FGL_J2243.8-2510_daily_bin1297.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) = 7800.976649
delta logL = -0.00046458698489

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7800.9761844
delta logL = 1.59379851539e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6978       1.0000          .0000       10.000    
     3 'Normalizat'    1.1850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72314       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=   7800.976     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      240 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10176E-03    250.35        .18142E-02** at limit **
   2  Index         2.5822        6.2905        .50000        .60676E-05
   3  Normalizat    1.1850        .18273E-01    .21996E-03   -.21347E-03
   4  Prefactor     .72314        .16921E-01    .25320E-03   -.14574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101755
  Index      = 2.58218
  Normalizat = 1.18499
  Prefactor  = 0.723141
 **********
 **   18 **HESSE 
 **********

 FCN=   7800.976     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10176E-03    947.93        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5822        7.9810        .50000       -.50472    
   3  Normalizat    1.1850        .39607E-01    .43991E-04   -.87068    
   4  Prefactor     .72314        .36675E-01    .10128E-04   -1.0263    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.78762e-08
Minuit parameter uncertainties:
  1  0.0829253
  2  2771.71
  3  0.0396082
  4  0.036676
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445103': 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) = 7800.9761843
delta logL = 1.1407155398e-07

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.018e-04  8.293e-02  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.582e+00  2.772e+03  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:  7.231e-01  3.668e-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:  1.185e+00  3.961e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/445103/cmap_HighResolution_575510401_575769601_4FGL_J2243.8-2510_daily_bin1297.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-03', job_status='DONE', photon_flux_upper_limit='4.70e-08', time_completed='2021-09-28 19:13:17.511564', job_id='445103', GAL2='0.72', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1632881597.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1297' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:13:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 445103: <4FGL_J2243.8-2510_daily_bin1297> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1297> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:00:39 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:00:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:00:40 2021
Terminated at Tue Sep 28 19:13:18 2021
Results reported at Tue Sep 28 19:13:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1297 340.957 -25.1701 575510401 575769601 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 :                                   709.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             304.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

