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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1663
RA = 340.99, Dec = 20.3565
tmin = 670377601, tmax = 670636801
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='261583', job_status='RUN', time_executed='2022-04-03 00:37:52.976818', time_epoch_executed='1648971472.98' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261583/ft1_4FGL_J2243.9+2021_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261583/ft1_4FGL_J2243.9+2021_daily_bin1663.fits outfile=/scratch/kocevski/261583/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1663.fits ra=340.99 dec=20.3565 rad=12.0 tmin=670377601.0 tmax=670636801.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.81
user 3.57
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.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/261583/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1663.fits evtable="EVENTS" outfile="/scratch/kocevski/261583/ft1_filtered_4FGL_J2243.9+2021_daily_bin1663.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.34
sys 0.14

Number of photons that the gtmktime cut: 788

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261583/ft1_filtered_4FGL_J2243.9+2021_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/261583/ltcube_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.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/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.fits
.....................!
real 11.96
user 11.56
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261583/ft1_filtered_4FGL_J2243.9+2021_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/261583/ltcube_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.fits outfile=/scratch/kocevski/261583/expmap_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.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/261583/ltcube_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.fits
.....................!
real 191.89
user 186.71
sys 4.76

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/261583/ft1_filtered_4FGL_J2243.9+2021_daily_bin1663.fits scfile=/scratch/kocevski/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.fits outfile=/scratch/kocevski/261583/cmap_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261583/ft1_filtered_4FGL_J2243.9+2021_daily_bin1663.fits scfile=/scratch/kocevski/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.fits outfile=/scratch/kocevski/261583/cmap_HighResolution_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261583/ft1_filtered_4FGL_J2243.9+2021_daily_bin1663.fits', '/scratch/kocevski/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.fits', expMap='/scratch/kocevski/261583/expmap_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.fits', expCube='/scratch/kocevski/261583/ltcube_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261583/Model_4FGL_J2243.9+2021_daily_bin1663.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  1.000e-04  1.000e+04 ( 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  0.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/261583/ft1_filtered_4FGL_J2243.9+2021_daily_bin1663.fits
Spacecraft file(s): /scratch/kocevski/261583/ft2_4FGL_J2243.9+2021_daily_bin1663.fits
Exposure map: /scratch/kocevski/261583/expmap_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.fits
Exposure cube: /scratch/kocevski/261583/ltcube_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261583/Model_4FGL_J2243.9+2021_daily_bin1663.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) = 8581.9821483

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.2763       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.069       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3400       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .81738       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5365       1.0000         .10000E-03   10000.    
    10 'norm      '    4.2396       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.9863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.522       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48713       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.2579       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.7154       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1675       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91526       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8581.961     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2939 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.599        .37172E-05** at limit **
   2  norm          .10000E-03    .30841        .11023E-07** at limit **
   3  Prefactor     8.2754        13.325       -.45165E-07   -.77876E-05
   4  norm          .10000E-03    2.3411       -.16791E-07** at limit **
   5  Prefactor     17.070        15.923        .61700E-06   -.10463E-03
   6  Prefactor     .10000E-03    51.775       -.28199E-05** at limit **
   7  Prefactor     4.3402        6.8618        .29707E-05   -.64359E-03
   8  Prefactor     .81733        .26405       -.23673E-08   -.17335E-03
   9  Prefactor     9.5372        8.0974        .16008E-07   -.10628E-04
  10  norm          4.2396        1.3459       -.30219E-08    .27869E-03
  11  Prefactor     .10001E-03    15.308       -.52364E-05** at limit **
  12  norm          2.9865        1.9438        .38709E-08   -.40137E-04
  13  Prefactor     .10000E-03    15.378        .64385E-06** at limit **
  14  Prefactor     14.520        11.752        .30097E-07   -.53140E-05
  15  Prefactor     .10000E-03    4.9515       -.17729E-07** at limit **
  16  Prefactor     .48715        .15424       -.29427E-08   -.33166E-03
  17  Prefactor     .10000E-03    4.6143        .24371E-07** at limit **
  18  Prefactor     1.2574        4.8425        .57267E-06   -.45071E-03
  19  Prefactor     .10000E-03    15.065        .59468E-06** at limit **
  20  Prefactor     .10000E-03    27.842       -.55356E-06** at limit **
  21  Prefactor     .10000E-03    14.477        .31723E-05** at limit **
  22  Prefactor     5.7165        6.8175        .30020E-06    .22165E-04
  23  Prefactor     .10000E-03    11.388       -.28971E-06** at limit **
  24  Normalizat    1.1675        .22054       -.75278E-06    .74702E-05
  25  Prefactor     .91526        .11204       -.86457E-07   -.27612E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 8.27544
  norm       = 0.0001
  Prefactor  = 17.0702
  Prefactor  = 0.000100002
  Prefactor  = 4.34018
  Prefactor  = 0.817332
  Prefactor  = 9.53717
  norm       = 4.23961
  Prefactor  = 0.000100005
  norm       = 2.98651
  Prefactor  = 0.0001
  Prefactor  = 14.5197
  Prefactor  = 0.0001
  Prefactor  = 0.487151
  Prefactor  = 0.0001
  Prefactor  = 1.25739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 5.71654
  Prefactor  = 0.0001
  Normalizat = 1.16752
  Prefactor  = 0.915256
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.961     FROM HESSE     STATUS=OK           427 CALLS     3366 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .31970        .10039E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.2754        13.321        .13935E-03   -1.5133    
   4  norm          .10000E-03    2.3685        .13839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     17.070        16.008        .48472E-03   -1.4881    
   6  Prefactor     .10000E-03    52.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3402        7.2375        .96677E-03   -1.5291    
   8  Prefactor     .81733        .26367        .24233E-04   -1.5527    
   9  Prefactor     9.5372        8.1160        .12977E-03   -1.5090    
  10  norm          4.2396        1.3459        .58092E-04   -1.5296    
  11  Prefactor     .10001E-03    16.521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.9865        1.9400        .98141E-04   -1.5362    
  13  Prefactor     .10000E-03    15.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.520        11.748        .10511E-03   -1.4946    
  15  Prefactor     .10000E-03    4.9526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .48715        .15351        .19386E-04   -1.5568    
  17  Prefactor     .10000E-03    4.6318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.2574        5.0208        .39796E-03   -1.5484    
  19  Prefactor     .10000E-03    15.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.7165        6.8242        .16801E-03   -1.5230    
  23  Prefactor     .10000E-03    11.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1675        .26363        .33926E-03   -.87613    
  25  Prefactor     .91526        .13411        .20025E-03   -.95610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55856e-09
Minuit parameter uncertainties:
  1  0.000619135
  2  9.32404e-08
  3  13.3258
  4  1.85735e-06
  5  16.0123
  6  0.000622186
  7  7.23894
  8  0.263668
  9  8.11695
  10  1.34587
  11  0.000587372
  12  1.93999
  13  7.74746e-05
  14  11.7498
  15  5.88015e-08
  16  0.153507
  17  1.58937e-06
  18  5.02246
  19  7.92258e-05
  20  8.8514e-05
  21  0.000369972
  22  6.82511
  23  3.2433e-05
  24  0.26393
  25  0.134159
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.987e+00  1.940e+00  1.000e-04  1.000e+04 ( 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  0.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:  9.153e-01  1.342e-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.168e+00  2.639e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.34
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.37e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 2.84e-05

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) = 8581.88087787
delta logL = 0.0798431653748

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8581.87823628
delta logL = 0.0824847529002

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8546       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9833       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91589       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8581.878     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      251 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8547        2.0782        .91906E-04   -.34191E-03
   2  alpha         1.9836        .69497        .15932E-01    .25039E-03
   3  Normalizat    1.1584        .25140        .34036E-03   -.76824E-05
   4  Prefactor     .91590        .13319        .20012E-03   -.56809E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.85472
  alpha      = 1.98365
  Normalizat = 1.1584
  Prefactor  = 0.9159
 **********
 **   18 **HESSE 
 **********

 FCN=   8581.878     FROM HESSE     STATUS=OK            25 CALLS      276 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8547        2.0003        .36762E-05   -1.5370    
   2  alpha         1.9836        .66959        .31863E-02   -.20804    
   3  Normalizat    1.1584        .25148        .13614E-04   -.87898    
   4  Prefactor     .91590        .13330        .80048E-05   -.95588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93113e-11
Minuit parameter uncertainties:
  1  2.0003
  2  0.678246
  3  0.251746
  4  0.133348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261583': 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) = 8581.87823604
delta logL = 0.0824849977707

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.855e+00  2.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.984e+00  6.782e-01  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00  0.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:  9.159e-01  1.333e-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.158e+00  2.517e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.51
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.98 +/- 0.68
Photon Flux (Free Index): 4.72e-08 +/- 4.42e-08
Energy Flux (Free Index): 3.35e-05 +/- 2.94e-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/261583/cmap_HighResolution_670377601_670636801_4FGL_J2243.9+2021_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.37e-08', energy_flux2='3.35e-05', photon_flux_error='2.19e-08', dlogl='8.25e-02', energy_flux='4.37e-05', photon_flux2='4.72e-08', job_status='DONE', time_completed='2022-04-03 00:49:52.548204', photon_index_error2='0.68', photon_index2='1.98', ts='6.34', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='2.94e-05', EG='1.17', time_epoch_completed='1648972192.55', return_code='0', job_id='261583', GAL2='0.92', EG2='1.16', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='4.42e-08', ts2='6.51', photon_index='1.72' WHERE bin_id='1663' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 00:49:52 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 261583: <4FGL_J2243.9+2021_daily_bin1663> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1663> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Apr  3 00:35:40 2022
Job was executed on host(s) <bullet0161>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 00:35:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 00:35:41 2022
Terminated at Sun Apr  3 00:49:53 2022
Results reported at Sun Apr  3 00:49:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1663 340.99 20.3565 670377601 670636801 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 :                                   722.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

