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 82 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1763
RA = 340.99, Dec = 20.3565
tmin = 696297601, tmax = 696556801
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='296599', job_status='RUN', time_executed='2023-01-28 01:49:59.209268', time_epoch_executed='1674899399.21' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1763'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/296599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/296599/ft1_4FGL_J2243.9+2021_daily_bin1763.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/296599/ft1_4FGL_J2243.9+2021_daily_bin1763.fits outfile=/scratch/kocevski/296599/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1763.fits ra=340.99 dec=20.3565 rad=12.0 tmin=696297601.0 tmax=696556801.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.45
user 2.78
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.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/296599/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1763.fits evtable="EVENTS" outfile="/scratch/kocevski/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.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.52
user 0.28
sys 0.15

Number of photons that the gtmktime cut: 869

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.fits" evtable="EVENTS" scfile=/scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits sctable="SC_DATA" outfile=/scratch/kocevski/296599/ltcube_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.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/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits
.....................!
real 13.50
user 13.05
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits sctable="SC_DATA" expcube=/scratch/kocevski/296599/ltcube_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.fits outfile=/scratch/kocevski/296599/expmap_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.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/296599/ltcube_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.fits
.....................!
real 166.41
user 152.29
sys 4.19

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

Setting source of interest to:
4FGL J2243.9+2021 @ 340.99 20.3565

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.fits scfile=/scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits outfile=/scratch/kocevski/296599/cmap_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.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.99 yref=20.3565 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.66
user 0.32
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.fits scfile=/scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits outfile=/scratch/kocevski/296599/cmap_HighResolution_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.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.99 yref=20.3565 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.49
user 0.32
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.fits evtable="EVENTS" scfile=/scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/296599/Model_4FGL_J2243.9+2021_daily_bin1763.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/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.fits.....................!
real 77.54
user 73.31
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.fits', '/scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits', expMap='/scratch/kocevski/296599/expmap_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.fits', expCube='/scratch/kocevski/296599/ltcube_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/296599/Model_4FGL_J2243.9+2021_daily_bin1763.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.9+2021'

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.733e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/296599/ft1_filtered_4FGL_J2243.9+2021_daily_bin1763.fits
Spacecraft file(s): /scratch/kocevski/296599/ft2_4FGL_J2243.9+2021_daily_bin1763.fits
Exposure map: /scratch/kocevski/296599/expmap_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.fits
Exposure cube: /scratch/kocevski/296599/ltcube_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/296599/Model_4FGL_J2243.9+2021_daily_bin1763.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) = 8805.47762601

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.849       1.0000          .0000       .10000E+07
     2 'norm      '    .30531E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .13365E-05   1.0000          .0000       .10000E+07
     4 'norm      '    .94369E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    24.985       1.0000          .0000       .10000E+07
     6 'Prefactor '    .26693E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    3.1415       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2336       1.0000         .10000E-03   10000.    
     9 'norm      '    .78443       1.0000          .0000       .10000E+07
    10 'norm      '    1.7126       1.0000          .0000       .10000E+07
    11 'Prefactor '    .11666E-02   1.0000          .0000       .10000E+07
    12 'Prefactor '    .60184E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    1.2286       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.138       1.0000          .0000       .10000E+07
    15 'Prefactor '    .31927E-03   1.0000          .0000       .10000E+07
    16 'Prefactor '    .21449E-03   1.0000          .0000       .10000E+07
    17 'Prefactor '    .78104E-07   1.0000          .0000       .10000E+07
    18 'Prefactor '    7.0845       1.0000          .0000       .10000E+07
    19 'Normalizat'    1.2971       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .80209       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8805.440     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1514 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.058        4.2773       -.20606E-07    .11500    
   2  norm           .0000        .28300       -.13164E-07** at limit **
   3  Prefactor     .11102E-09    3.6465        .59608E-09** at limit **
   4  norm          .55511E-10    2.3841        .57959E-07** at limit **
   5  Prefactor     24.949        3.5935        .12733E-07   -.63374E-01
   6  Prefactor     .15543E-08    44.036        .10147E-06** at limit **
   7  Prefactor     3.1414        .37771       -.15632E-07   -.12917E-02
   8  Prefactor     5.2856        7.0872        .39438E-06    .10173E-03
   9  norm          .78449        .71658        .16369E-07    .22077E-02
  10  norm          1.7135        1.4974       -.16704E-07   -.26472E-02
  11  Prefactor     .77716E-09    10.875       -.21616E-07** at limit **
  12  Prefactor     .33923E-06    102.46        .20494E-06** at limit **
  13  Prefactor     1.2285        .20858        .59281E-07    .11952E-02
  14  Prefactor     11.161        6.5466        .16531E-07    .53368E-04
  15  Prefactor     .66669E-07    6.1370        .52474E-07** at limit **
  16  Prefactor     .31253E-07    7.1492       -.97979E-07** at limit **
  17  Prefactor     .18985E-07    6.0720        .52843E-07** at limit **
  18  Prefactor     7.0866        1.7716        .47366E-08   -.40448E-02
  19  Normalizat    1.2973        .25245       -.31348E-05   -.28129E-03
  20  Prefactor     .80195        .13339        .22547E-06   -.35599E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.0579
  norm       = 0
  Prefactor  = 1.11022e-10
  norm       = 5.55112e-11
  Prefactor  = 24.9487
  Prefactor  = 1.55431e-09
  Prefactor  = 3.14142
  Prefactor  = 5.28555
  norm       = 0.78449
  norm       = 1.71354
  Prefactor  = 7.77156e-10
  Prefactor  = 3.39229e-07
  Prefactor  = 1.22849
  Prefactor  = 11.1608
  Prefactor  = 6.66689e-08
  Prefactor  = 3.12528e-08
  Prefactor  = 1.89848e-08
  Prefactor  = 7.0866
  Normalizat = 1.29734
  Prefactor  = 0.801947
 **********
 **   18 **HESSE 
 **********

 FCN=   8805.440     FROM HESSE     STATUS=OK           341 CALLS     1855 TOTAL
                     EDM=   .81E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.058        34.955        .21400E-03   -1.5614    
   2  norm           .0000        .28350        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .11102E-09    3.6414        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .55511E-10    2.4054        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.949        17.290        .20010E-03   -1.5608    
   6  Prefactor     .15543E-08    5.1792        .12454E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.1414        .38750        .42928E-02   -1.5353    
   8  Prefactor     5.2856        7.0852        .43926E-02   -1.5248    
   9  norm          .78449        .72370        .54103E-03   -1.5690    
  10  norm          1.7135        1.5081        .80283E-03   -1.5682    
  11  Prefactor     .77716E-09    11.014        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .33923E-06    99.169        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.2285        .20820        .37785E-02   -1.5486    
  14  Prefactor     11.161        6.5581        .29994E-03   -1.5641    
  15  Prefactor     .66669E-07    6.3188        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .31253E-07    7.2378        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .18985E-07    6.0910        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.0866        16.045        .37665E-03   -1.5655    
  19  Normalizat    1.2973        .21635        .74182E-01   -.83646    
  20  Prefactor     .80195        .11231        .43744E-01   -.99657    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.05272e-07
Minuit parameter uncertainties:
  1  34.9553
  2  9.41621e-07
  3  3.54799e-05
  4  2.2389e-05
  5  17.2898
  6  0.000180543
  7  0.387499
  8  7.0863
  9  0.7237
  10  1.50809
  11  0.000185836
  12  0.0116004
  13  0.208205
  14  6.55813
  15  0.00129792
  16  0.000951385
  17  0.000680374
  18  16.0453
  19  0.216497
  20  0.112342
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.714e+00  1.508e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.019e-01  1.123e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.297e+00  2.165e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.74
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 2.51e-05 +/- 2.21e-05

TS (Fixed Index): 2.74
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 6.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.15e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/296599/likelihoodResults_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.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) = 8804.05849452
delta logL = 1.38120581276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8804.01396722
delta logL = 1.42573310786

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .86557       1.0000          .0000       .10000E+07
     2 'alpha     '    2.9632       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82876       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8804.014     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      241 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .86414        7.6238        .48170E-04    .36542E-01
   2  alpha         2.9645        3.7326        .25055        .10312E-03
   3  Normalizat    1.2029        .91012E-01    .76478E-01   -.49262E-04
   4  Prefactor     .82883        .40235E-01    .44090E-01   -.10735E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.864139
  alpha      = 2.9645
  Normalizat = 1.20295
  Prefactor  = 0.828826
 **********
 **   18 **HESSE 
 **********

 FCN=   8804.014     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .86414        1.5234        .96341E-05   -1.5689    
   2  alpha         2.9645        .98949        .90606E-02    .18688    
   3  Normalizat    1.2029        .26270        .33849E-03   -.86512    
   4  Prefactor     .82883        .13696        .21438E-03   -.98674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0372e-08
Minuit parameter uncertainties:
  1  1.52337
  2  1.01842
  3  0.262986
  4  0.137018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/296599': 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): 0
logL (Free Index) = 8804.01396477
delta logL = 1.42573556129

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  8.641e-01  1.523e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  2.964e+00  1.018e+00  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  8.288e-01  1.370e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.203e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.66
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.96 +/- 1.02
Photon Flux (Free Index): 9.25e-08 +/- 6.81e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.16e-05

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/296599/cmap_HighResolution_696297601_696556801_4FGL_J2243.9+2021_daily_bin1763.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.15e-05', comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='2.10e-05', photon_flux_error='1.70e-08', dlogl='1.43e+00', energy_flux='2.51e-05', photon_flux2='9.25e-08', job_status='DONE', time_completed='2023-01-28 01:59:32.801270', photon_index_error2='1.02', photon_index2='2.96', ts='2.74', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='6.28e-08', energy_flux_error2='1.16e-05', EG='1.30', time_epoch_completed='1674899972.8', return_code='0', job_id='296599', GAL2='0.83', EG2='1.20', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='6.81e-08', ts2='5.66', photon_index='1.72' WHERE bin_id='1763' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jan 28 01:59:32 PST 2023


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 296599: <4FGL_J2243.9+2021_daily_bin1763> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1763> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Jan 28 01:45:29 2023
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jan 28 01:48:23 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jan 28 01:48:23 2023
Terminated at Sat Jan 28 01:59:33 2023
Results reported at Sat Jan 28 01:59:33 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1763 340.99 20.3565 696297601 696556801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.9+2021 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   542.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            844 sec.

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

