/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 93 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_bin1131
RA = 340.957, Dec = -25.1701
tmin = 532483201, tmax = 532742401
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='444863', job_status='RUN', time_executed='2021-09-28 19:02:04.560581', time_epoch_executed='1632880924.56' WHERE source_name='4FGL J2243.8-2510' and cadence='daily' and bin_id='1131'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/444863

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/444863/ft1_4FGL_J2243.8-2510_daily_bin1131.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/444863/ft2_4FGL_J2243.8-2510_daily_bin1131.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/444863/ft1_4FGL_J2243.8-2510_daily_bin1131.fits outfile=/scratch/kocevski/444863/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1131.fits ra=340.957 dec=-25.1701 rad=12.0 tmin=532483201.0 tmax=532742401.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.49
user 3.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/444863/ft2_4FGL_J2243.8-2510_daily_bin1131.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/444863/ft1_filteredMKT_4FGL_J2243.8-2510_daily_bin1131.fits evtable="EVENTS" outfile="/scratch/kocevski/444863/ft1_filtered_4FGL_J2243.8-2510_daily_bin1131.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/444863/ft1_filtered_4FGL_J2243.8-2510_daily_bin1131.fits" evtable="EVENTS" scfile=/scratch/kocevski/444863/ft2_4FGL_J2243.8-2510_daily_bin1131.fits sctable="SC_DATA" outfile=/scratch/kocevski/444863/ltcube_532483201_532742401_4FGL_J2243.8-2510_daily_bin1131.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/444863/ft2_4FGL_J2243.8-2510_daily_bin1131.fits
.....................!
real 11.92
user 11.55
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/444863/ft1_filtered_4FGL_J2243.8-2510_daily_bin1131.fits evtable="EVENTS" scfile=/scratch/kocevski/444863/ft2_4FGL_J2243.8-2510_daily_bin1131.fits sctable="SC_DATA" expcube=/scratch/kocevski/444863/ltcube_532483201_532742401_4FGL_J2243.8-2510_daily_bin1131.fits outfile=/scratch/kocevski/444863/expmap_532483201_532742401_4FGL_J2243.8-2510_daily_bin1131.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/444863/ltcube_532483201_532742401_4FGL_J2243.8-2510_daily_bin1131.fits
.....................!
real 189.56
user 185.19
sys 4.07

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/444863/ft1_filtered_4FGL_J2243.8-2510_daily_bin1131.fits scfile=/scratch/kocevski/444863/ft2_4FGL_J2243.8-2510_daily_bin1131.fits outfile=/scratch/kocevski/444863/cmap_532483201_532742401_4FGL_J2243.8-2510_daily_bin1131.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.15

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    2.6084       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    144.32       1.0000         .10000E-03   10000.    
     7 'norm      '    7.4765       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12509       1.0000         .10000E-03   10000.    
    11 'norm      '    1.8805       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.698       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .63100       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.349       1.0000         .10000E-03   10000.    
    17 'norm      '    5.5854       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.3721       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5781       1.0000         .10000E-03   10000.    
    21 'norm      '    .94245       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.4323       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .92748       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=   5272.765     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     3443 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    102.34       -.22460E-05** at limit **
   2  norm          2.6083        .65861        .52326E-08   -.94471E-05
   3  Prefactor     .10000E-03    5.1064        .10996E-07** at limit **
   4  Prefactor     .10000E-03    20.278        .47542E-06** at limit **
   5  Prefactor     10.761        10.646        .72115E-07    .20247E-06
   6  Prefactor     144.36        101.56        .80291E-06    .43986E-04
   7  norm          7.4733        25.095        .40123E-06   -.99998E-05
   8  Prefactor     .10000E-03    20.817       -.37222E-06** at limit **
   9  Prefactor     .10000E-03    10.369       -.25614E-07** at limit **
  10  norm          .12632        1.2078        .23035E-06   -.26926E-03
  11  norm          1.8815        3.1620        .14169E-06   -.43532E-04
  12  Prefactor     20.681        71.817       -.14903E-05   -.33366E-04
  13  Prefactor     .10000E-03    10.768       -.17798E-06** at limit **
  14  norm          .63195        5.2724        .24599E-05   -.67272E-04
  15  Prefactor     .10000E-03    8.3673       -.68882E-07** at limit **
  16  Prefactor     21.346        25.406       -.56101E-06   -.13315E-03
  17  norm          5.5848        1.7011       -.37272E-07   -.52678E-03
  18  Prefactor     .10000E-03    49.692       -.17615E-05** at limit **
  19  Prefactor     8.3769        22.239        .68226E-07   -.10275E-04
  20  Prefactor     3.5882        40.125        .15325E-05   -.12855E-04
  21  norm          .94206        3.7300        .16310E-05   -.78247E-04
  22  Prefactor     .10000E-03    62.016        .32234E-05** at limit **
  23  Normalizat    1.4321        .25693        .13237E-06   -.12821E-03
  24  Prefactor     .92764        .21872       -.13319E-05   -.52839E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 2.60834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.7611
  Prefactor  = 144.355
  norm       = 7.47333
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.126322
  norm       = 1.88149
  Prefactor  = 20.6814
  Prefactor  = 0.0001
  norm       = 0.631947
  Prefactor  = 0.0001
  Prefactor  = 21.3463
  norm       = 5.58477
  Prefactor  = 0.0001
  Prefactor  = 8.37691
  Prefactor  = 3.58819
  norm       = 0.942064
  Prefactor  = 0.000100001
  Normalizat = 1.43208
  Prefactor  = 0.927642
 **********
 **   18 **HESSE 
 **********

 FCN=   5272.765     FROM HESSE     STATUS=OK           403 CALLS     3846 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    103.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6083        .65982        .28786E-04   -1.5385    
   3  Prefactor     .10000E-03    5.1196        .16025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.761        10.670        .12214E-03   -1.5052    
   6  Prefactor     144.36        102.05        .16770E-03   -1.3299    
   7  norm          7.4733        25.056        .14667E-03   -1.5161    
   8  Prefactor     .10000E-03    20.851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    10.410        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .12632        2.6809        .14643E-02   -1.5637    
  11  norm          1.8815        3.0978        .14596E-03   -1.5434    
  12  Prefactor     20.681        71.381        .88038E-04   -1.4798    
  13  Prefactor     .10000E-03    10.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .63195        5.2888        .31820E-03   -1.5549    
  15  Prefactor     .10000E-03    8.3693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     21.346        25.527        .86687E-04   -1.4784    
  17  norm          5.5848        1.7475        .38870E-04   -1.5235    
  18  Prefactor     .10000E-03    50.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.3769        22.241        .13855E-03   -1.5129    
  20  Prefactor     3.5882        37.474        .21364E-03   -1.5329    
  21  norm          .94206        3.7123        .26968E-03   -1.5514    
  22  Prefactor     .10000E-03    63.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.4321        .31460        .28549E-03   -.79705    
  24  Prefactor     .92764        .26374        .30007E-03   -.95182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94972e-08
Minuit parameter uncertainties:
  1  0.000481892
  2  0.659819
  3  3.16138e-06
  4  6.06058e-05
  5  10.6722
  6  102.178
  7  25.0909
  8  3.31094e-05
  9  2.5561e-05
  10  1.16349
  11  3.0981
  12  71.6784
  13  4.67945e-06
  14  3.6565
  15  4.53557e-06
  16  25.5404
  17  1.74755
  18  0.000277878
  19  22.2633
  20  23.21
  21  3.71321
  22  0.000505958
  23  0.31503
  24  0.2641
Done.

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

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  2.068e+01  7.168e+01  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:  9.276e-01  2.641e-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.432e+00  3.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 340.957 -25.170
Photon Flux Upper Limit: 1.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.38e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/444863/likelihoodResults_532483201_532742401_4FGL_J2243.8-2510_daily_bin1131.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): 0
logL (Free Index) = 5272.20341611
delta logL = 0.56180632128

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5272.19406305
delta logL = 0.571159382614

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44179       1.0000         .10000E-03   10000.    
     2 'Index     '    6.0739       1.0000          .0000       10.000    
     3 'Normalizat'    1.3543       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97698       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.

 FCN=   5272.194     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      331 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44054        6.8265        .10489E-01    .10972E-02
   2  Index         6.0771        3.0469        .18346        .90796E-04
   3  Normalizat    1.3544        .51477E-01    .65945E-01    .15550E-04
   4  Prefactor     .97690        .45054E-01    .66311E-01    .21687E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.440542
  Index      = 6.07707
  Normalizat = 1.3544
  Prefactor  = 0.9769
 **********
 **   18 **HESSE 
 **********

 FCN=   5272.194     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      366 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     .44054        22.442        .48423E-03   -1.5575    
   2  Index         6.0771        8.0183        .62437E-02    .21712    
   3  Normalizat    1.3544        .22031        .29171E-03   -.81957    
   4  Prefactor     .97690        .18826        .29329E-03   -.93504    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.84716e-08
Minuit parameter uncertainties:
  1  6.29038
  2  8.10737
  3  0.220465
  4  0.188388
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/444863': 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) = 5272.19405896
delta logL = 0.571163476795

Extracting fit parameters...

4FGL J2243.8-2510
   Spectrum: PowerLaw
268    Prefactor:  4.405e-01  6.290e+00  1.000e-04  1.000e+04 ( 1.000e-13)
269        Index:  6.077e+00  8.107e+00  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:  9.769e-01  1.884e-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.354e+00  2.205e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 340.957 -25.170
Photon Index (Free Index): 6.08 +/- 8.11
Photon Flux (Free Index): 9.74e-08 +/- 9.82e-08
Energy Flux (Free Index): 1.21e-05 +/- 1.45e-05

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/444863/cmap_HighResolution_532483201_532742401_4FGL_J2243.8-2510_daily_bin1131.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.38e-02', comment='SUCCESS', energy_flux2='1.21e-05', dlogl='5.71e-01', photon_flux2='9.74e-08', job_status='DONE', time_completed='2021-09-28 19:12:35.376823', photon_index_error2='8.11', photon_index2='6.08', ts='0.12', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.75e-07', energy_flux_error2='1.45e-05', EG='1.43', time_epoch_completed='1632881555.38', return_code='0', job_id='444863', GAL2='0.98', EG2='1.35', return_code2='102', photon_flux_error2='9.82e-08', ts2='1.39', photon_index='2.71' WHERE bin_id='1131' AND source_name='4FGL J2243.8-2510' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:12:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 444863: <4FGL_J2243.8-2510_daily_bin1131> in cluster <slac> Done

Job <4FGL_J2243.8-2510_daily_bin1131> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:00:20 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:00:21 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:21 2021
Terminated at Tue Sep 28 19:12:36 2021
Results reported at Tue Sep 28 19:12:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.8-2510_daily_bin1131 340.957 -25.1701 532483201 532742401 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 :                                   629.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

