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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1628
RA = 340.957, Dec = -25.1701
tmin = 661305601, tmax = 661564801
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='338281', job_status='RUN', time_executed='2021-12-19 01:37:57.055743', time_epoch_executed='1639906677.06' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1628'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/338281

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/338281/ft1_4FGL_J2243.8-2510_daily_bin1628.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/338281/ft2_4FGL_J2243.8-2510_daily_bin1628.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/338281/ft1_4FGL_J2243.8-2510_daily_bin1628.fits outfile=/scratch/kocevski/338281/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1628.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=661305601.0 tmax=661564801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.71
user 3.45
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/338281/ft1_filtered_4FGL_J2243.8-2510_daily_bin1628.fits" evtable="EVENTS" scfile=/scratch/kocevski/338281/ft2_4FGL_J2243.8-2510_daily_bin1628.fits sctable="SC_DATA" outfile=/scratch/kocevski/338281/ltcube_661305601_661564801_4FGL_J2243.8-2510_daily_bin1628.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/338281/ft2_4FGL_J2243.8-2510_daily_bin1628.fits
.....................!
real 14.59
user 14.21
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/338281/ft1_filtered_4FGL_J2243.8-2510_daily_bin1628.fits evtable="EVENTS" scfile=/scratch/kocevski/338281/ft2_4FGL_J2243.8-2510_daily_bin1628.fits sctable="SC_DATA" expcube=/scratch/kocevski/338281/ltcube_661305601_661564801_4FGL_J2243.8-2510_daily_bin1628.fits outfile=/scratch/kocevski/338281/expmap_661305601_661564801_4FGL_J2243.8-2510_daily_bin1628.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/338281/ltcube_661305601_661564801_4FGL_J2243.8-2510_daily_bin1628.fits
.....................!
real 192.82
user 186.71
sys 5.48

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/338281/ft1_filtered_4FGL_J2243.8-2510_daily_bin1628.fits scfile=/scratch/kocevski/338281/ft2_4FGL_J2243.8-2510_daily_bin1628.fits outfile=/scratch/kocevski/338281/cmap_661305601_661564801_4FGL_J2243.8-2510_daily_bin1628.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.57
user 0.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/338281/ft1_filtered_4FGL_J2243.8-2510_daily_bin1628.fits scfile=/scratch/kocevski/338281/ft2_4FGL_J2243.8-2510_daily_bin1628.fits outfile=/scratch/kocevski/338281/cmap_HighResolution_661305601_661564801_4FGL_J2243.8-2510_daily_bin1628.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/338281/ft1_filtered_4FGL_J2243.8-2510_daily_bin1628.fits evtable="EVENTS" scfile=/scratch/kocevski/338281/ft2_4FGL_J2243.8-2510_daily_bin1628.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/338281/Model_4FGL_J2243.8-2510_daily_bin1628.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/338281/ft1_filtered_4FGL_J2243.8-2510_daily_bin1628.fits.....................!
real 51.28
user 49.86
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .87733       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0299       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.946       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89053       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    11.932       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.635       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.1694       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8412       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20683E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.3807       1.0000         .10000E-03   10000.    
    17 'norm      '    .37518       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10350E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7738       1.0000         .10000E-03   10000.    
    21 'norm      '    5.5137       1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.952       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.2253       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .80141       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=   6320.349     FROM MIGRAD    STATUS=CONVERGED    545 CALLS     2334 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.724        .28801E-06** at limit **
   2  norm          .87735        .33805       -.64454E-09   -.23428E-04
   3  Prefactor     6.0298        11.530       -.49844E-06    .23591E-04
   4  Prefactor     10.948        12.401        .10984E-06    .82358E-05
   5  Prefactor     .91850        21.235       -.73079E-05    .30497E-04
   6  Prefactor     .10000E-03    19.503       -.21964E-05** at limit **
   7  norm          11.933        13.821        .15023E-06    .20448E-05
   8  Prefactor     10.634        14.019        .21520E-06   -.20601E-04
   9  Prefactor     .10000E-03    3.1805        .26897E-08** at limit **
  10  norm          3.1695        1.1787       -.10361E-06    .74986E-03
  11  norm          1.8412        1.2962        .58496E-08   -.98910E-04
  12  Prefactor     .10000E-03    8.2427        .78707E-07** at limit **
  13  Prefactor     .10000E-03    18.088        .15207E-05** at limit **
  14  norm          .10000E-03    1.4106       -.65370E-07** at limit **
  15  Prefactor     .10000E-03    4.7845        .24554E-07** at limit **
  16  Prefactor     6.3883        9.0531        .62410E-06    .21686E-03
  17  norm          .37510        .59691        .15438E-06    .16391E-02
  18  Prefactor     .10000E-03    101.33        .25319E-06** at limit **
  19  Prefactor     .10000E-03    3.0969       -.39063E-07** at limit **
  20  Prefactor     1.7769        10.390       -.28366E-05    .45658E-04
  21  norm          5.5160        4.0040       -.49753E-06    .25883E-04
  22  Prefactor     40.933        38.347        .26649E-05    .25012E-04
  23  Normalizat    1.2243        .18855        .83972E-06    .28491E-04
  24  Prefactor     .80217        .16804       -.10926E-06   -.86746E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.877349
  Prefactor  = 6.02978
  Prefactor  = 10.9481
  Prefactor  = 0.918496
  Prefactor  = 0.0001
  norm       = 11.9334
  Prefactor  = 10.6341
  Prefactor  = 0.0001
  norm       = 3.16948
  norm       = 1.84119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.38833
  norm       = 0.375096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.77686
  norm       = 5.51601
  Prefactor  = 40.9334
  Normalizat = 1.22434
  Prefactor  = 0.80217
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.349     FROM HESSE     STATUS=OK           405 CALLS     2739 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .87735        .33826        .27942E-04   -1.5521    
   3  Prefactor     6.0298        11.524        .16351E-03   -1.5217    
   4  Prefactor     10.948        12.401        .12109E-03   -1.5046    
   5  Prefactor     .91850        21.492        .32737E-02   -1.5516    
   6  Prefactor     .10000E-03    19.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          11.933        13.826        .11597E-03   -1.5017    
   8  Prefactor     10.634        14.005        .12286E-03   -1.5056    
   9  Prefactor     .10000E-03    3.1880        .13846E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.1695        1.1821        .25417E-03   -1.5352    
  11  norm          1.8412        1.3064        .73992E-04   -1.5437    
  12  Prefactor     .10000E-03    8.2444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    18.582        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    1.4227        .92171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7862        .16968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.3883        9.0694        .15890E-03   -1.5202    
  17  norm          .37510        .55760        .56551E-03   -1.5585    
  18  Prefactor     .10000E-03    101.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.1006        .13663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7769        10.739        .31437E-03   -1.5441    
  21  norm          5.5160        4.0041        .12519E-03   -1.5238    
  22  Prefactor     40.933        38.916        .62639E-04   -1.4428    
  23  Normalizat    1.2243        .22584        .23496E-03   -.85854    
  24  Prefactor     .80217        .20145        .26080E-03   -.99648    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70159e-10
Minuit parameter uncertainties:
  1  4.67685e-06
  2  0.338265
  3  11.5286
  4  12.4038
  5  8.88919
  6  2.99663e-05
  7  13.8299
  8  14.0096
  9  5.59609e-07
  10  1.18207
  11  1.30643
  12  2.28549e-06
  13  0.000109193
  14  5.53139e-06
  15  1.32893e-05
  16  9.07135
  17  0.557612
  18  1.52358e-05
  19  1.74434e-07
  20  8.73853
  21  4.00429
  22  38.9403
  23  0.226022
  24  0.201631
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  2.285e-06  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.022e-01  2.016e-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.224e+00  2.260e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/338281/likelihoodResults_661305601_661564801_4FGL_J2243.8-2510_daily_bin1628.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) = 6320.34999534
delta logL = -0.000574090548071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6320.34942121
delta logL = 3.11774783768e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6846       1.0000          .0000       10.000    
     3 'Normalizat'    1.2243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80217       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=   6320.349     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      258 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.834        .18142E-01** at limit **
   2  Index         1.9084        5.0986        .50000       -.13461E-07
   3  Normalizat    1.2243        .92969E-02    .23496E-03    .14159E-02
   4  Prefactor     .80217        .85866E-02    .26080E-03    .11923E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.9084
  Normalizat = 1.22434
  Prefactor  = 0.802173
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.349     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      287 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    350.34        .27675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9084        8.3806        .50000       -.66660    
   3  Normalizat    1.2243        .24002E-01    .46992E-04   -.85854    
   4  Prefactor     .80217        .22168E-01    .52160E-04   -.99648    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.33557e-10
Minuit parameter uncertainties:
  1  0.000600727
  2  1055.84
  3  0.0240021
  4  0.0221684
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/338281': 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) = 6320.34941912
delta logL = 2.12953364098e-06

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  6.007e-04  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  1.908e+00  1.056e+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:  8.022e-01  2.217e-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.224e+00  2.400e-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/338281/cmap_HighResolution_661305601_661564801_4FGL_J2243.8-2510_daily_bin1628.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-03', job_status='DONE', photon_flux_upper_limit='4.67e-08', time_completed='2021-12-19 01:48:34.942196', job_id='338281', GAL2='0.80', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1639907314.94', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='2.13e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1628' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Dec 19 01:48:34 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0192>
Subject: Job 338281: <4FGL_J2243.8-2510_daily_bin1628> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1628> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Dec 19 01:35:32 2021
Job was executed on host(s) <bullet0192>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Dec 19 01:37:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Dec 19 01:37:04 2021
Terminated at Sun Dec 19 01:48:35 2021
Results reported at Sun Dec 19 01:48:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1628 340.957 -25.1701 661305601 661564801 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 :                                   638.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            783 sec.

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

