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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1695
RA = 340.99, Dec = 20.3565
tmin = 678672001, tmax = 678931201
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='731247', job_status='RUN', time_executed='2022-07-08 00:36:33.120843', time_epoch_executed='1657265793.12' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1695'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/731247

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/731247/ft1_4FGL_J2243.9+2021_daily_bin1695.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/731247/ft2_4FGL_J2243.9+2021_daily_bin1695.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/731247/ft1_4FGL_J2243.9+2021_daily_bin1695.fits outfile=/scratch/kocevski/731247/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1695.fits ra=340.99 dec=20.3565 rad=12.0 tmin=678672001.0 tmax=678931201.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.63
user 3.39
sys 0.21

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

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

Number of photons that the gtmktime cut: 855

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/731247/ft1_filtered_4FGL_J2243.9+2021_daily_bin1695.fits evtable="EVENTS" scfile=/scratch/kocevski/731247/ft2_4FGL_J2243.9+2021_daily_bin1695.fits sctable="SC_DATA" expcube=/scratch/kocevski/731247/ltcube_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.fits outfile=/scratch/kocevski/731247/expmap_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.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/731247/ltcube_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.fits
.....................!
real 192.13
user 187.41
sys 4.36

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/731247/ft1_filtered_4FGL_J2243.9+2021_daily_bin1695.fits scfile=/scratch/kocevski/731247/ft2_4FGL_J2243.9+2021_daily_bin1695.fits outfile=/scratch/kocevski/731247/cmap_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/731247/ft1_filtered_4FGL_J2243.9+2021_daily_bin1695.fits scfile=/scratch/kocevski/731247/ft2_4FGL_J2243.9+2021_daily_bin1695.fits outfile=/scratch/kocevski/731247/cmap_HighResolution_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.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.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/731247/ft1_filtered_4FGL_J2243.9+2021_daily_bin1695.fits', '/scratch/kocevski/731247/ft2_4FGL_J2243.9+2021_daily_bin1695.fits', expMap='/scratch/kocevski/731247/expmap_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.fits', expCube='/scratch/kocevski/731247/ltcube_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/731247/Model_4FGL_J2243.9+2021_daily_bin1695.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/731247/ft1_filtered_4FGL_J2243.9+2021_daily_bin1695.fits
Spacecraft file(s): /scratch/kocevski/731247/ft2_4FGL_J2243.9+2021_daily_bin1695.fits
Exposure map: /scratch/kocevski/731247/expmap_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.fits
Exposure cube: /scratch/kocevski/731247/ltcube_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/731247/Model_4FGL_J2243.9+2021_daily_bin1695.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) = 8812.59652092

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11318E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.235       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.908       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2167       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6440       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8368       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    36.532       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.493       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .89670       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.4917       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .55252       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.8432       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.076       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3601       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80799       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=   8812.580     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2911 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    151.26        .90712E-02** at limit **
   2  norm          .10000E-03    .36064        .90712E-02** at limit **
   3  Prefactor     10.236        13.694        .31310E-02    .14476E-02
   4  norm          .10000E-03    1.5564        .90712E-02** at limit **
   5  Prefactor     .10000E-03    10.356        .90712E-02** at limit **
   6  Prefactor     .10000E-03    75.618        .90712E-02** at limit **
   7  Prefactor     28.907        13.767        .18629E-02    .29358E-02
   8  Prefactor     1.2167        .26774        .48858E-02    .89176E-03
   9  Prefactor     12.930        7.8400        .27848E-02   -.48335E-04
  10  norm          1.6440        1.0514        .82363E-03    .20881E-02
  11  Prefactor     .10000E-03    9.2884        .90712E-02** at limit **
  12  norm          3.8368        2.1640        .51510E-02    .14992E-03
  13  Prefactor     .10000E-03    14.510        .90712E-02** at limit **
  14  Prefactor     36.532        13.013        .16577E-02    .11707E-02
  15  Prefactor     15.493        19.818        .25439E-02   -.90149E-04
  16  Prefactor     .89671        .18499        .38634E-02    .45631E-03
  17  Prefactor     4.4916        5.1101        .47494E-02   -.30320E-03
  18  Prefactor     .54865        4.2376        .59797E-01    .72877E-03
  19  Prefactor     6.8433        7.5092        .38343E-02   -.19747E-04
  20  Prefactor     .10000E-03    9.3447        .90712E-02** at limit **
  21  Prefactor     17.075        24.331        .24231E-02   -.97543E-04
  22  Prefactor     .10000E-03    7.0663        .90712E-02** at limit **
  23  Prefactor     .10000E-03    5.6529        .90712E-02** at limit **
  24  Normalizat    1.3602        .21752        .72717E-01    .45603E-04
  25  Prefactor     .80797        .11201        .43821E-01    .47168E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 10.2356
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.9072
  Prefactor  = 1.21666
  Prefactor  = 12.9302
  norm       = 1.64397
  Prefactor  = 0.000100003
  norm       = 3.83677
  Prefactor  = 0.0001
  Prefactor  = 36.5325
  Prefactor  = 15.4926
  Prefactor  = 0.896707
  Prefactor  = 4.49161
  Prefactor  = 0.548653
  Prefactor  = 6.84329
  Prefactor  = 0.000100004
  Prefactor  = 17.0751
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36017
  Prefactor  = 0.807967
 **********
 **   18 **HESSE 
 **********

 FCN=   8812.580     FROM HESSE     STATUS=OK           429 CALLS     3340 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    153.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .37835        .10999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     10.236        13.690        .12524E-03   -1.5068    
   4  norm          .10000E-03    1.5649        .11435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    75.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.907        13.847        .74516E-04   -1.4632    
   8  Prefactor     1.2167        .26788        .21656E-04   -1.5487    
   9  Prefactor     12.930        7.8471        .11139E-03   -1.4989    
  10  norm          1.6440        1.0523        .16473E-03   -1.5452    
  11  Prefactor     .10000E-03    9.3008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8368        2.1617        .98742E-04   -1.5316    
  13  Prefactor     .10000E-03    14.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     36.532        13.021        .66307E-04   -1.4498    
  15  Prefactor     15.493        19.843        .10176E-03   -1.4921    
  16  Prefactor     .89671        .18528        .17093E-04   -1.5519    
  17  Prefactor     4.4916        5.1096        .18998E-03   -1.5284    
  18  Prefactor     .54865        12.202        .36675E-02   -1.5560    
  19  Prefactor     6.8433        7.5057        .15337E-03   -1.5185    
  20  Prefactor     .10000E-03    9.3748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     17.075        24.336        .96924E-04   -1.4881    
  22  Prefactor     .10000E-03    7.3774        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3602        .25818        .32177E-03   -.81788    
  25  Prefactor     .80797        .13285        .21602E-03   -.99435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76609e-08
Minuit parameter uncertainties:
  1  0.00217838
  2  5.55771e-07
  3  13.6937
  4  2.38011e-06
  5  1.53318e-06
  6  0.000271583
  7  13.8482
  8  0.267879
  9  7.84772
  10  1.05231
  11  0.0003278
  12  2.16179
  13  2.00383e-05
  14  13.022
  15  19.8519
  16  0.185278
  17  5.11013
  18  5.17548
  19  7.50673
  20  0.000374788
  21  24.3505
  22  2.05288e-05
  23  2.59148e-06
  24  0.258429
  25  0.132906
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.837e+00  2.162e+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:  8.080e-01  1.329e-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.360e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.16
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 2.44e-08
Energy Flux (Fixed Index): 5.62e-05 +/- 3.17e-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) = 8811.43677299
delta logL = 1.14368025725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8811.40916299
delta logL = 1.17129025886

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9227       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3401       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3189       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81760       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=   8811.409     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      240 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9227        20.570        .59407E-02   -.17000E-03
   2  alpha         2.3401        3.5952        .23439        .77716E-04
   3  Normalizat    1.3189        .99201E-01    .73510E-01   -.32732E-04
   4  Prefactor     .81760        .43733E-01    .43946E-01    .18284E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.92267
  alpha      = 2.34014
  Normalizat = 1.31888
  Prefactor  = 0.817598
 **********
 **   18 **HESSE 
 **********

 FCN=   8811.409     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9227        1.9742        .69790E-04   -1.5366    
   2  alpha         2.3401        .43220        .88807E-02   -.63989E-01
   3  Normalizat    1.3189        .24651        .32530E-03   -.83005    
   4  Prefactor     .81760        .13127        .21454E-03   -.99083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51184e-09
Minuit parameter uncertainties:
  1  1.97419
  2  0.434393
  3  0.246728
  4  0.131324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/731247': 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) = 8811.40916299
delta logL = 1.17129025887

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.923e+00  1.974e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.340e+00  4.344e-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:  8.176e-01  1.313e-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.319e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.51
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.34 +/- 0.43
Photon Flux (Free Index): 8.92e-08 +/- 4.83e-08
Energy Flux (Free Index): 3.54e-05 +/- 1.85e-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/731247/cmap_HighResolution_678672001_678931201_4FGL_J2243.9+2021_daily_bin1695.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='3.54e-05', photon_flux_error='2.44e-08', dlogl='1.17e+00', energy_flux='5.62e-05', photon_flux2='8.92e-08', job_status='DONE', time_completed='2022-07-08 00:49:07.890501', photon_index_error2='0.43', photon_index2='2.34', ts='7.16', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.85e-05', EG='1.36', time_epoch_completed='1657266547.89', return_code='0', job_id='731247', GAL2='0.82', EG2='1.32', return_code2='0', energy_flux_error='3.17e-05', photon_flux_error2='4.83e-08', ts2='9.51', photon_index='1.72' WHERE bin_id='1695' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jul  8 00:49:07 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 731247: <4FGL_J2243.9+2021_daily_bin1695> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1695> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Jul  8 00:35:22 2022
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul  8 00:35:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul  8 00:35:23 2022
Terminated at Fri Jul  8 00:49:08 2022
Results reported at Fri Jul  8 00:49:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1695 340.99 20.3565 678672001 678931201 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 :                                   757.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

