aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 229 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 = 7446
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1665
RA = 340.865, Dec = -25.7363
tmin = 670896001, tmax = 671155201
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='357091', job_status='RUN', time_executed='2022-04-09 00:39:48.995167', time_epoch_executed='1649489989.0' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1665'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/357091

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/357091/ft1_4FGL_J2243.4-2544_daily_bin1665.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/357091/ft1_4FGL_J2243.4-2544_daily_bin1665.fits outfile=/scratch/kocevski/357091/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1665.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=670896001.0 tmax=671155201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.46
user 5.09
sys 0.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.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/357091/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1665.fits evtable="EVENTS" outfile="/scratch/kocevski/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.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.49
user 0.32
sys 0.15

Number of photons that the gtmktime cut: 673

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.fits" evtable="EVENTS" scfile=/scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits sctable="SC_DATA" outfile=/scratch/kocevski/357091/ltcube_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.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/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits
.....................!
real 11.38
user 11.04
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits sctable="SC_DATA" expcube=/scratch/kocevski/357091/ltcube_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.fits outfile=/scratch/kocevski/357091/expmap_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.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/357091/ltcube_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.fits
.....................!
real 192.69
user 187.35
sys 5.02

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.4-2544 @ 340.865 -25.7363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.fits scfile=/scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits outfile=/scratch/kocevski/357091/cmap_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.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.865 yref=-25.7363 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.fits scfile=/scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits outfile=/scratch/kocevski/357091/cmap_HighResolution_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.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.865 yref=-25.7363 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.fits evtable="EVENTS" scfile=/scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/357091/Model_4FGL_J2243.4-2544_daily_bin1665.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/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.fits.....................!
real 55.80
user 54.54
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.fits', '/scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits', expMap='/scratch/kocevski/357091/expmap_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.fits', expCube='/scratch/kocevski/357091/ltcube_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/357091/Model_4FGL_J2243.4-2544_daily_bin1665.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.4-2544'

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.477e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/357091/ft1_filtered_4FGL_J2243.4-2544_daily_bin1665.fits
Spacecraft file(s): /scratch/kocevski/357091/ft2_4FGL_J2243.4-2544_daily_bin1665.fits
Exposure map: /scratch/kocevski/357091/expmap_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.fits
Exposure cube: /scratch/kocevski/357091/ltcube_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/357091/Model_4FGL_J2243.4-2544_daily_bin1665.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) = 7224.707606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.422       1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.731       1.0000         .10000E-03   10000.    
     3 'norm      '    .64687       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6701       1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.1507       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.8812       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.764       1.0000         .10000E-03   10000.    
     8 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.141       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.4522       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .26682E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.1956       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.590       1.0000         .10000E-03   10000.    
    18 'norm      '    .56639       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.239       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.078       1.0000         .10000E-03   10000.    
    22 'norm      '    6.5880       1.0000         .10000E-03   10000.    
    23 'Prefactor '    54.521       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .59016       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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=   7224.532     FROM MIGRAD    STATUS=CONVERGED    994 CALLS     3041 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.419        47.609        .10199E-03    .28090E-04
   2  Prefactor     53.732        104.14        .54719E-04    .22439E-04
   3  norm          .64687        .26452        .26898E-04   -.29586E-05
   4  Prefactor     1.6698        8.2053        .16311E-02   -.59019E-03
   5  Prefactor     8.1500        9.5643        .14043E-03    .11981E-04
   6  Prefactor     9.8810        6.4110        .12748E-03   -.12307E-04
   7  Prefactor     14.763        37.918        .10424E-03    .92704E-05
   8  norm          .10000E-03    11.645        .18142E-02** at limit **
   9  Prefactor     13.141        13.521        .11050E-03    .56587E-05
  10  Prefactor     .10000E-03    8.9572        .36285E-03** at limit **
  11  norm          3.4521        1.0048        .21767E-04   -.43872E-04
  12  norm          .10000E-03    .89711        .15510E-03** at limit **
  13  Prefactor     .10001E-03    159.88        .76013E-02** at limit **
  14  Prefactor     7.1952        7.7230        .14953E-03    .17942E-04
  15  norm          .10000E-03    1.8211        .11129E-02** at limit **
  16  Prefactor     .10000E-03    6.2978        .18142E-02** at limit **
  17  Prefactor     32.591        10.236        .70191E-04    .19452E-03
  18  norm          .56634        .51542        .49307E-04    .11667E-03
  19  Prefactor     24.238        28.635        .81361E-04    .23419E-04
  20  Prefactor     .10000E-03    7.4586        .18142E-02** at limit **
  21  Prefactor     11.078        7.5570        .12037E-03    .97377E-04
  22  norm          6.5880        3.0847        .98082E-04    .99219E-04
  23  Prefactor     54.521        31.760        .54323E-04    .12641E-04
  24  Normalizat    1.0648        .18737        .22267E-03    .12284E-03
  25  Prefactor     .59012        .16319        .26393E-03    .79258E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.4193
  Prefactor  = 53.7323
  norm       = 0.646871
  Prefactor  = 1.66981
  Prefactor  = 8.15003
  Prefactor  = 9.88101
  Prefactor  = 14.7628
  norm       = 0.0001
  Prefactor  = 13.1405
  Prefactor  = 0.0001
  norm       = 3.45215
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 7.19521
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.5908
  norm       = 0.566336
  Prefactor  = 24.2378
  Prefactor  = 0.0001
  Prefactor  = 11.0783
  norm       = 6.58797
  Prefactor  = 54.5208
  Normalizat = 1.06478
  Prefactor  = 0.590119
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.532     FROM HESSE     STATUS=OK           401 CALLS     3442 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.419        47.627        .40796E-05   -1.4922    
   2  Prefactor     53.732        104.17        .10944E-04   -1.4241    
   3  norm          .64687        .26451        .10759E-05   -1.5547    
   4  Prefactor     1.6698        8.1832        .65244E-04   -1.5450    
   5  Prefactor     8.1500        9.5633        .56172E-05   -1.5137    
   6  Prefactor     9.8810        6.4108        .50991E-05   -1.5079    
   7  Prefactor     14.763        37.918        .41695E-05   -1.4939    
   8  norm          .10000E-03    11.648        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.141        13.521        .44199E-05   -1.4983    
  10  Prefactor     .10000E-03    8.9575        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.4521        1.0048        .87069E-06   -1.5336    
  12  norm          .10000E-03    .89712        .31019E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10001E-03    164.25        .30405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.1952        7.7226        .59814E-05   -1.5171    
  15  norm          .10000E-03    1.8214        .22259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.2985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.591        10.232        .28076E-05   -1.4566    
  18  norm          .56634        .51536        .19723E-05   -1.5557    
  19  Prefactor     24.238        28.635        .16272E-04   -1.4723    
  20  Prefactor     .10000E-03    7.4630        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.078        7.5568        .48147E-05   -1.5042    
  22  norm          6.5880        3.0847        .39233E-05   -1.5195    
  23  Prefactor     54.521        31.760        .10865E-04   -1.4230    
  24  Normalizat    1.0648        .18753        .89068E-05   -.90891    
  25  Prefactor     .59012        .16334        .10557E-04   -1.0800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.32814e-09
Minuit parameter uncertainties:
  1  47.7447
  2  104.521
  3  0.264513
  4  7.39447
  5  9.56506
  6  6.41128
  7  37.9802
  8  5.48398e-06
  9  13.5243
  10  1.37613e-05
  11  1.00482
  12  5.91796e-07
  13  0.0021518
  14  7.72372
  15  5.22943e-06
  16  1.62911e-06
  17  10.2329
  18  0.515359
  19  28.6514
  20  2.59613e-05
  21  7.55747
  22  3.08472
  23  31.77
  24  0.18765
  25  0.163469
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  5.918e-07  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  5.901e-01  1.635e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.065e+00  1.876e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 3.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/357091/likelihoodResults_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.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) = 7224.53741079
delta logL = -0.00527426302961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7224.53213811
delta logL = -1.57799877343e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10392E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0173       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0648       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59010       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7224.455     FROM MIGRAD    STATUS=FAILED       277 CALLS      425 TOTAL
                     EDM=   .10E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10583E-01    .27166E-01    .13986E-02   -.26586E-02
   2  alpha         4.7330        4.3098        .50000        .59022E-03
   3  Normalizat    1.0432        .18339        .22267E-03   -.20391E-03
   4  Prefactor     .60167        .16178        .26393E-03   -.15576E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7224.455     FROM SIMPLEX   STATUS=UNCHANGED     69 CALLS      494 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10583E-01    .27166E-01    .39400E-04   -1.5728    
   2  alpha         4.7330        4.3098        .18011E-01    1.1044    
   3  Normalizat    1.0432        .18339        .12341E-04   -.91598    
   4  Prefactor     .60167        .16178        .98137E-04   -1.0752    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7224.455     FROM MIGRAD    STATUS=FAILED        71 CALLS      565 TOTAL
                     EDM=   .16E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10584E-01    2.8851        .82509E-06   -.41352E-03
   2  alpha         4.7330        4.3337        .50000        .61932E-03
   3  Normalizat    1.0432        .80488E-01    .89068E-05    .53609E-05
   4  Prefactor     .60167        .72034E-01    .21114E-05   -.27999E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0105837
  alpha      = 4.73302
  Normalizat = 1.04318
  Prefactor  = 0.601671
 **********
 **   18 **HESSE 
 **********

 FCN=   7224.455     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      592 TOTAL
                     EDM=   .16E-03    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10584E-01    2.8844        .37500E-06   -1.5728    
   2  alpha         4.7330        4.3317        .50000        1.1044    
   3  Normalizat    1.0432        .80463E-01    .17814E-05   -.91598    
   4  Prefactor     .60167        .72047E-01    .42229E-06   -1.0752    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 0.000161824
Minuit parameter uncertainties:
  1  0.347806
  2  23.1153
  3  0.0804723
  4  0.0720585
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/357091': 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): 1
logL (Free Index) = 7224.45484759
delta logL = 0.0772889409664

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.058e-02  3.478e-01  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  4.733e+00  2.312e+01  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  6.017e-01  7.206e-02  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  1.043e+00  8.047e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.865 -25.736

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/357091/cmap_HighResolution_670896001_671155201_4FGL_J2243.4-2544_daily_bin1665.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.16e-05', job_status='DONE', photon_flux_upper_limit='3.39e-08', time_completed='2022-04-09 00:52:21.661943', job_id='357091', GAL2='0.60', fit_tolerance='1e-08', EG2='1.04', EG='1.06', time_epoch_completed='1649490741.66', return_code2='1', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='7.73e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1665' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Apr  9 00:52:21 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 357091: <4FGL_J2243.4-2544_daily_bin1665> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1665> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Apr  9 00:35:50 2022
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Apr  9 00:35:52 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Apr  9 00:35:52 2022
Terminated at Sat Apr  9 00:52:22 2022
Results reported at Sat Apr  9 00:52:22 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1665 340.865 -25.7363 670896001 671155201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.4-2544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   755.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             269.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

