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


Performing analysis on: 4FGL_J2243.8-2510_daily_bin1482
RA = 340.957, Dec = -25.1701
tmin = 623462401, tmax = 623721601
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='445382', job_status='RUN', time_executed='2021-09-28 19:01:29.106066', time_epoch_executed='1632880889.11' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1482'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/445382

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/445382/ft1_4FGL_J2243.8-2510_daily_bin1482.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/445382/ft2_4FGL_J2243.8-2510_daily_bin1482.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/445382/ft1_4FGL_J2243.8-2510_daily_bin1482.fits outfile=/scratch/kocevski/445382/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1482.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=623462401.0 tmax=623721601.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 2.71
user 2.48
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/445382/ft2_4FGL_J2243.8-2510_daily_bin1482.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/445382/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1482.fits evtable="EVENTS" outfile="/scratch/kocevski/445382/ft1_filtered_4FGL_J2243.8-2510_daily_bin1482.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.77
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/445382/ft1_filtered_4FGL_J2243.8-2510_daily_bin1482.fits" evtable="EVENTS" scfile=/scratch/kocevski/445382/ft2_4FGL_J2243.8-2510_daily_bin1482.fits sctable="SC_DATA" outfile=/scratch/kocevski/445382/ltcube_623462401_623721601_4FGL_J2243.8-2510_daily_bin1482.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/445382/ft2_4FGL_J2243.8-2510_daily_bin1482.fits
.....................!
real 12.42
user 12.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/445382/ft1_filtered_4FGL_J2243.8-2510_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/445382/ft2_4FGL_J2243.8-2510_daily_bin1482.fits sctable="SC_DATA" expcube=/scratch/kocevski/445382/ltcube_623462401_623721601_4FGL_J2243.8-2510_daily_bin1482.fits outfile=/scratch/kocevski/445382/expmap_623462401_623721601_4FGL_J2243.8-2510_daily_bin1482.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/445382/ltcube_623462401_623721601_4FGL_J2243.8-2510_daily_bin1482.fits
.....................!
real 190.32
user 184.89
sys 5.03

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/445382/ft1_filtered_4FGL_J2243.8-2510_daily_bin1482.fits scfile=/scratch/kocevski/445382/ft2_4FGL_J2243.8-2510_daily_bin1482.fits outfile=/scratch/kocevski/445382/cmap_623462401_623721601_4FGL_J2243.8-2510_daily_bin1482.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/445382/ft1_filtered_4FGL_J2243.8-2510_daily_bin1482.fits scfile=/scratch/kocevski/445382/ft2_4FGL_J2243.8-2510_daily_bin1482.fits outfile=/scratch/kocevski/445382/cmap_HighResolution_623462401_623721601_4FGL_J2243.8-2510_daily_bin1482.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/445382/ft1_filtered_4FGL_J2243.8-2510_daily_bin1482.fits evtable="EVENTS" scfile=/scratch/kocevski/445382/ft2_4FGL_J2243.8-2510_daily_bin1482.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/445382/Model_4FGL_J2243.8-2510_daily_bin1482.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/445382/ft1_filtered_4FGL_J2243.8-2510_daily_bin1482.fits.....................!
real 40.01
user 38.65
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.861       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0619       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1092       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    59.568       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.0932       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2574       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 '    10.545       1.0000         .10000E-03   10000.    
    14 'norm      '    .78468       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4978       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.521       1.0000         .10000E-03   10000.    
    17 'norm      '    4.3839       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10155E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.757       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5338       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0409       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .78392       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=   4559.723     FROM MIGRAD    STATUS=CONVERGED    544 CALLS     2743 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.857        75.615        .56971E-07   -.11734E-04
   2  norm          1.0619        .37112        .47838E-10    .45966E-04
   3  Prefactor     .10000E-03    5.6592       -.20665E-07** at limit **
   4  Prefactor     .10000E-03    17.566        .21902E-06** at limit **
   5  Prefactor     4.1091        5.0667        .11669E-06    .33110E-05
   6  Prefactor     .10000E-03    94.554        .37512E-05** at limit **
   7  norm          59.568        32.539        .96998E-07   -.18867E-04
   8  Prefactor     .10000E-03    5.8956       -.96951E-10** at limit **
   9  Prefactor     8.0915        14.345        .22550E-06   -.21120E-04
  10  norm          1.2571        1.6687        .13088E-06    .46807E-05
  11  norm          .10000E-03    .87493       -.65852E-07** at limit **
  12  Prefactor     .10000E-03    16.982       -.12483E-06** at limit **
  13  Prefactor     10.550        14.704        .73864E-06    .13830E-04
  14  norm          .78770        5.5296        .11345E-05    .21871E-05
  15  Prefactor     4.4469        84.866        .81639E-05   -.38268E-04
  16  Prefactor     18.529        25.881       -.25195E-05   -.17202E-03
  17  norm          4.3838        1.5012       -.10105E-06   -.72775E-03
  18  Prefactor     .10001E-03    354.40       -.21770E-04** at limit **
  19  Prefactor     57.758        27.486        .47099E-07   -.58803E-05
  20  Prefactor     .10000E-03    8.5321        .65188E-06** at limit **
  21  norm          3.5334        5.0215        .37599E-06    .95237E-05
  22  Prefactor     .10000E-03    68.145       -.14610E-05** at limit **
  23  Normalizat    1.0408        .25037       -.30015E-05    .75540E-04
  24  Prefactor     .78403        .20847        .23655E-05   -.10491E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.8571
  norm       = 1.06188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.1091
  Prefactor  = 0.000100001
  norm       = 59.5682
  Prefactor  = 0.0001
  Prefactor  = 8.0915
  norm       = 1.25714
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5501
  norm       = 0.787698
  Prefactor  = 4.44691
  Prefactor  = 18.5286
  norm       = 4.38379
  Prefactor  = 0.000100013
  Prefactor  = 57.7581
  Prefactor  = 0.0001
  norm       = 3.5334
  Prefactor  = 0.0001
  Normalizat = 1.04082
  Prefactor  = 0.784035
 **********
 **   18 **HESSE 
 **********

 FCN=   4559.723     FROM HESSE     STATUS=OK           397 CALLS     3140 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.857        75.831        .53199E-04   -1.4198    
   2  norm          1.0619        .37227        .23599E-04   -1.5502    
   3  Prefactor     .10000E-03    5.6862        .15686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.655        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1091        5.0632        .16383E-03   -1.5303    
   6  Prefactor     .10000E-03    94.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          59.568        32.532        .51984E-04   -1.4163    
   8  Prefactor     .10000E-03    5.8970        .16014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.0915        14.347        .14093E-03   -1.5139    
  10  norm          1.2571        1.6425        .96374E-04   -1.5484    
  11  norm          .10000E-03    .87768        .61665E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     10.550        14.828        .12339E-03   -1.5058    
  14  norm          .78770        5.2334        .28516E-03   -1.5530    
  15  Prefactor     4.4469        83.973        .18984E-03   -1.5286    
  16  Prefactor     18.529        26.999        .93065E-04   -1.4847    
  17  norm          4.3838        1.5644        .34967E-04   -1.5289    
  18  Prefactor     .10001E-03    362.59        .20752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     57.758        27.479        .52787E-04   -1.4187    
  20  Prefactor     .10000E-03    8.6175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5334        5.0104        .17372E-03   -1.5332    
  22  Prefactor     .10000E-03    68.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0408        .29380        .26474E-03   -.91675    
  24  Prefactor     .78403        .24552        .26719E-03   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.94892e-10
Minuit parameter uncertainties:
  1  75.9605
  2  0.372272
  3  2.76573e-06
  4  2.81989e-05
  5  5.06371
  6  0.000464922
  7  32.5418
  8  1.70383e-06
  9  14.3533
  10  1.64255
  11  2.3832e-07
  12  3.35532e-06
  13  14.8331
  14  4.06097
  15  38.7106
  16  27.0164
  17  1.56441
  18  0.00435588
  19  27.4846
  20  3.32063e-05
  21  5.011
  22  0.000150749
  23  0.294262
  24  0.245863
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.355e-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:  7.840e-01  2.459e-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.041e+00  2.943e-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.05e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.13e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/445382/likelihoodResults_623462401_623721601_4FGL_J2243.8-2510_daily_bin1482.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) = 4559.72361108
delta logL = -0.000279910101199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4559.72333381
delta logL = -2.63629863184e-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.2967       1.0000          .0000       10.000    
     3 'Normalizat'    1.0408       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78405       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=   4559.723     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      290 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    94.649        .18142E-01** at limit **
   2  Index         2.0382        7.2646        .50000        .87630E-07
   3  Normalizat    1.0408        .10890E-01    .26475E-03    .10390E-02
   4  Prefactor     .78404        .97256E-02    .26718E-03    .10336E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100006
  Index      = 2.03823
  Normalizat = 1.04082
  Prefactor  = 0.784041
 **********
 **   18 **HESSE 
 **********

 FCN=   4559.723     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      319 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    512.01        .32260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0382        6.6333        .50000       -.63398    
   3  Normalizat    1.0408        .25990E-01    .52949E-04   -.91675    
   4  Prefactor     .78404        .23212E-01    .53437E-04   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58188e-09
Minuit parameter uncertainties:
  1  0.003622
  2  1212.13
  3  0.0259905
  4  0.0232124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/445382': 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) = 4559.72333032
delta logL = 8.53028723213e-07

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  1.000e-04  3.622e-03  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  2.038e+00  1.212e+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.840e-01  2.321e-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.041e+00  2.599e-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/445382/cmap_HighResolution_623462401_623721601_4FGL_J2243.8-2510_daily_bin1482.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.05e-08', time_completed='2021-09-28 19:10:38.420836', job_id='445382', GAL2='0.78', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632881438.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='8.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='1482' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:10:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 445382: <4FGL_J2243.8-2510_daily_bin1482> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1482> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:01:00 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:01:02 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:01:02 2021
Terminated at Tue Sep 28 19:10:38 2021
Results reported at Tue Sep 28 19:10:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1482 340.957 -25.1701 623462401 623721601 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 :                                   543.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   576 sec.
    Turnaround time :                            578 sec.

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

