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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin769
RA = 340.957, Dec = -25.1701
tmin = 438652801, tmax = 438912001
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='443273', job_status='RUN', time_executed='2021-09-28 18:58:12.910980', time_epoch_executed='1632880692.91' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='769'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/443273

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/443273/ft1_4FGL_J2243.8-2510_daily_bin769.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/443273/ft2_4FGL_J2243.8-2510_daily_bin769.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/443273/ft1_4FGL_J2243.8-2510_daily_bin769.fits outfile=/scratch/kocevski/443273/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin769.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=438652801.0 tmax=438912001.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 6.33
user 6.04
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/443273/ft1_filtered_4FGL_J2243.8-2510_daily_bin769.fits" evtable="EVENTS" scfile=/scratch/kocevski/443273/ft2_4FGL_J2243.8-2510_daily_bin769.fits sctable="SC_DATA" outfile=/scratch/kocevski/443273/ltcube_438652801_438912001_4FGL_J2243.8-2510_daily_bin769.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/443273/ft2_4FGL_J2243.8-2510_daily_bin769.fits
.....................!
real 12.16
user 11.78
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/443273/ft1_filtered_4FGL_J2243.8-2510_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/443273/ft2_4FGL_J2243.8-2510_daily_bin769.fits sctable="SC_DATA" expcube=/scratch/kocevski/443273/ltcube_438652801_438912001_4FGL_J2243.8-2510_daily_bin769.fits outfile=/scratch/kocevski/443273/expmap_438652801_438912001_4FGL_J2243.8-2510_daily_bin769.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/443273/ltcube_438652801_438912001_4FGL_J2243.8-2510_daily_bin769.fits
.....................!
real 189.80
user 184.98
sys 4.51

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/443273/ft1_filtered_4FGL_J2243.8-2510_daily_bin769.fits scfile=/scratch/kocevski/443273/ft2_4FGL_J2243.8-2510_daily_bin769.fits outfile=/scratch/kocevski/443273/cmap_438652801_438912001_4FGL_J2243.8-2510_daily_bin769.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/443273/ft1_filtered_4FGL_J2243.8-2510_daily_bin769.fits evtable="EVENTS" scfile=/scratch/kocevski/443273/ft2_4FGL_J2243.8-2510_daily_bin769.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/443273/Model_4FGL_J2243.8-2510_daily_bin769.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/443273/ft1_filtered_4FGL_J2243.8-2510_daily_bin769.fits.....................!
real 37.85
user 36.56
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    100.53       1.0000         .10000E-03   10000.    
     2 'norm      '    .36501       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9145       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37521E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11416E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4722       1.0000         .10000E-03   10000.    
    10 'norm      '    .75195E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    1.4285       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    34.160       1.0000         .10000E-03   10000.    
    16 'Prefactor '    79.446       1.0000         .10000E-03   10000.    
    17 'norm      '    .19959       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .19391       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.6864       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=   4291.412     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     2864 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     100.52        101.19       -.21588E-05   -.54763E-04
   2  norm          .36499        .29249        .19962E-08    .13071E-03
   3  Prefactor     2.9127        8.4189        .88732E-07   -.13579E-03
   4  Prefactor     .10000E-03    8.4112       -.44178E-07** at limit **
   5  Prefactor     .11056        7.5775       -.33069E-06    .40423E-04
   6  Prefactor     .10000E-03    31.205       -.32728E-06** at limit **
   7  norm          .10000E-03    14.002        .37723E-07** at limit **
   8  Prefactor     .10000E-03    65.337        .39539E-06** at limit **
   9  Prefactor     4.4712        15.410        .23853E-06   -.33181E-04
  10  norm          .75559E-01    .62834        .99746E-07   -.84354E-03
  11  norm          1.4287        1.6538       -.11931E-07   -.54642E-05
  12  Prefactor     .10000E-03    17.111       -.94607E-07** at limit **
  13  Prefactor     .10000E-03    2.9390        .12134E-07** at limit **
  14  norm          .10000E-03    3.1414        .53424E-07** at limit **
  15  Prefactor     34.193        37.071       -.13913E-05   -.17972E-03
  16  Prefactor     79.447        22.653       -.49063E-06   -.36684E-03
  17  norm          .20004        1.5076        .71710E-06   -.60738E-03
  18  Prefactor     .10000E-03    93.458        .17154E-07** at limit **
  19  Prefactor     .10000E-03    5.7557       -.77524E-07** at limit **
  20  Prefactor     .10000E-03    5.9161        .11461E-07** at limit **
  21  norm          .10000E-03    1.4326        .46396E-09** at limit **
  22  Prefactor     .10000E-03    26.285       -.38742E-06** at limit **
  23  Normalizat    .19409        .31262        .47479E-05   -.30660E-04
  24  Prefactor     1.6860        .29536       -.17228E-05   -.80609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 100.516
  norm       = 0.364991
  Prefactor  = 2.91269
  Prefactor  = 0.0001
  Prefactor  = 0.110559
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.47116
  norm       = 0.0755593
  norm       = 1.4287
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.1932
  Prefactor  = 79.4467
  norm       = 0.200037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.194086
  Prefactor  = 1.68604
 **********
 **   18 **HESSE 
 **********

 FCN=   4291.412     FROM HESSE     STATUS=OK           403 CALLS     3267 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     100.52        101.91        .40096E-04   -1.3699    
   2  norm          .36499        .29663        .30812E-04   -1.5587    
   3  Prefactor     2.9127        8.4466        .23798E-03   -1.5367    
   4  Prefactor     .10000E-03    8.4184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .11056        16.218        .53708E-01   -1.5641    
   6  Prefactor     .10000E-03    31.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    14.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    66.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4712        14.774        .19040E-03   -1.5285    
  10  norm          .75559E-01    1.2816        .10117E-02   -1.5653    
  11  norm          1.4287        1.6502        .88080E-04   -1.5469    
  12  Prefactor     .10000E-03    17.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.9409        .10967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    3.1586        .11336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     34.193        36.973        .68563E-04   -1.4538    
  16  Prefactor     79.447        23.179        .45057E-04   -1.3923    
  17  norm          .20004        1.9708        .10195E-02   -1.5619    
  18  Prefactor     .10000E-03    93.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.7743        .15350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9431        .15552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.4452        .76553E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .19409        .26097        .53495E-03   -1.2985    
  24  Prefactor     1.6860        .25437        .19703E-03   -.72454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.7577e-10
Minuit parameter uncertainties:
  1  102.086
  2  0.296636
  3  8.45003
  4  3.38273e-07
  5  2.67759
  6  4.77382e-05
  7  2.34135e-06
  8  9.86732e-05
  9  14.786
  10  0.621976
  11  1.65026
  12  2.06552e-05
  13  4.17561e-07
  14  7.52887e-06
  15  36.998
  16  23.1813
  17  1.25551
  18  1.10563e-05
  19  4.17103e-06
  20  3.98987e-07
  21  2.43191e-07
  22  5.01714e-05
  23  0.262639
  24  0.254565
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.066e-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:  1.686e+00  2.546e-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.941e-01  2.626e-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: 8.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/443273/likelihoodResults_438652801_438912001_4FGL_J2243.8-2510_daily_bin769.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) = 4291.41256762
delta logL = -0.000274985154647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4291.4122956
delta logL = -2.95739118883e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6914       1.0000          .0000       10.000    
     3 'Normalizat'    .19406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6861       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=   4291.412     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      298 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    145.48        .18142E-01** at limit **
   2  Index         2.0872        5.7379        .50000       -.49363E-07
   3  Normalizat    .19409        .13643E-01    .53496E-03   -.17084E-03
   4  Prefactor     1.6860        .13955E-01    .19703E-03   -.45850E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.08717
  Normalizat = 0.194085
  Prefactor  = 1.68604
 **********
 **   18 **HESSE 
 **********

 FCN=   4291.412     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      327 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    929.65        .28771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0872        8.8507        .50000       -.62188    
   3  Normalizat    .19409        .36620E-01    .21398E-04   -1.2985    
   4  Prefactor     1.6860        .37462E-01    .39405E-04   -.72454    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.58715e-08
Minuit parameter uncertainties:
  1  0.00399157
  2  2239.3
  3  0.0366245
  4  0.0374623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/443273': 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) = 4291.41229219
delta logL = 4.47171260021e-07

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.992e-03  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.087e+00  2.239e+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:  1.686e+00  3.746e-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.941e-01  3.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/443273/cmap_HighResolution_438652801_438912001_4FGL_J2243.8-2510_daily_bin769.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.61e-03', job_status='DONE', photon_flux_upper_limit='8.39e-08', time_completed='2021-09-28 19:07:41.432849', job_id='443273', GAL2='1.69', fit_tolerance='1e-08', EG2='0.19', EG='0.19', time_epoch_completed='1632881261.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.69', dlogl='4.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='769' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:07:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 443273: <4FGL_J2243.8-2510_daily_bin769> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin769> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 18:55:21 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:55:22 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:22 2021
Terminated at Tue Sep 28 19:07:42 2021
Results reported at Tue Sep 28 19:07:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin769 340.957 -25.1701 438652801 438912001 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 :                                   567.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             272.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   739 sec.
    Turnaround time :                            741 sec.

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

