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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1733
RA = 340.99, Dec = 20.3565
tmin = 688521601, tmax = 688780801
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='708588', job_status='RUN', time_executed='2022-10-30 00:36:50.497822', time_epoch_executed='1667115410.5' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/708588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/708588/ft1_4FGL_J2243.9+2021_daily_bin1733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/708588/ft2_4FGL_J2243.9+2021_daily_bin1733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/708588/ft1_4FGL_J2243.9+2021_daily_bin1733.fits outfile=/scratch/kocevski/708588/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1733.fits ra=340.99 dec=20.3565 rad=12.0 tmin=688521601.0 tmax=688780801.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.73
user 3.50
sys 0.21

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

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

Number of photons that the gtmktime cut: 1024

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/708588/ft1_filtered_4FGL_J2243.9+2021_daily_bin1733.fits" evtable="EVENTS" scfile=/scratch/kocevski/708588/ft2_4FGL_J2243.9+2021_daily_bin1733.fits sctable="SC_DATA" outfile=/scratch/kocevski/708588/ltcube_688521601_688780801_4FGL_J2243.9+2021_daily_bin1733.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/708588/ft2_4FGL_J2243.9+2021_daily_bin1733.fits
.....................!
real 15.14
user 14.68
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/708588/ft1_filtered_4FGL_J2243.9+2021_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708588/ft2_4FGL_J2243.9+2021_daily_bin1733.fits sctable="SC_DATA" expcube=/scratch/kocevski/708588/ltcube_688521601_688780801_4FGL_J2243.9+2021_daily_bin1733.fits outfile=/scratch/kocevski/708588/expmap_688521601_688780801_4FGL_J2243.9+2021_daily_bin1733.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/708588/ltcube_688521601_688780801_4FGL_J2243.9+2021_daily_bin1733.fits
.....................!
real 199.71
user 194.36
sys 4.98

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/708588/ft1_filtered_4FGL_J2243.9+2021_daily_bin1733.fits scfile=/scratch/kocevski/708588/ft2_4FGL_J2243.9+2021_daily_bin1733.fits outfile=/scratch/kocevski/708588/cmap_688521601_688780801_4FGL_J2243.9+2021_daily_bin1733.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/708588/ft1_filtered_4FGL_J2243.9+2021_daily_bin1733.fits scfile=/scratch/kocevski/708588/ft2_4FGL_J2243.9+2021_daily_bin1733.fits outfile=/scratch/kocevski/708588/cmap_HighResolution_688521601_688780801_4FGL_J2243.9+2021_daily_bin1733.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/708588/ft1_filtered_4FGL_J2243.9+2021_daily_bin1733.fits evtable="EVENTS" scfile=/scratch/kocevski/708588/ft2_4FGL_J2243.9+2021_daily_bin1733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/708588/Model_4FGL_J2243.9+2021_daily_bin1733.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/708588/ft1_filtered_4FGL_J2243.9+2021_daily_bin1733.fits.....................!
real 116.06
user 114.58
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77369       1.0000          .0000       .10000E+07
     2 'norm      '    .89373E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    31.942       1.0000          .0000       .10000E+07
     4 'norm      '    .49960E-09   1.0000          .0000       .10000E+07
     5 'Prefactor '    .50461E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    5.4476       1.0000          .0000       .10000E+07
     7 'Prefactor '    .69145       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.9134       1.0000          .0000       .10000E+07
    10 'norm      '    1.8661       1.0000          .0000       .10000E+07
    11 'Prefactor '    18.745       1.0000          .0000       .10000E+07
    12 'Prefactor '    .39694E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    3.9281       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6524       1.0000          .0000       .10000E+07
    15 'Prefactor '    10.895       1.0000          .0000       .10000E+07
    16 'Prefactor '    93.917       1.0000          .0000       .10000E+07
    17 'Prefactor '    19.224       1.0000          .0000       .10000E+07
    18 'Prefactor '    .81752E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    1.0718       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0897       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=   10693.54     FROM MIGRAD    STATUS=CONVERGED    168 CALLS     1629 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46713E-05    1329.2       -.69992E-06** at limit **
   2  norm           .0000        .33594       -.29238E-08** at limit **
   3  Prefactor     31.901        18.505        .17582E-06    .37882E-01
   4  norm           .0000        1.3043        .10020E-09** at limit **
   5  Prefactor     .33307E-09    14.750       -.11648E-06** at limit **
   6  Prefactor     5.3959        13.738        .12051E-06   -.35981E-03
   7  Prefactor     .69104        .24506        .84349E-07    .72649E-03
   8  Prefactor     .10000E-03    5.0361        .15690E-06** at limit **
   9  norm          1.9125        1.0073       -.43069E-09    .82302E-04
  10  norm          1.8680        1.8944       -.89510E-08   -.54383E-03
  11  Prefactor     18.720        16.492       -.11915E-06    .84220E-01
  12  Prefactor     .72862E-04    437.51       -.20035E-05** at limit **
  13  Prefactor     3.9282        .34156        .28536E-07    .73071E-03
  14  Prefactor     1.6019        9.8918        .16925E-07    .35997E-03
  15  Prefactor     10.243        33.503       -.23572E-06    .24878E-01
  16  Prefactor     95.071        49.713       -.94824E-07    .44047E-01
  17  Prefactor     19.173        9.2432       -.10998E-07    .12409E-02
  18  Prefactor     .27756E-09    18.899       -.10264E-06** at limit **
  19  Normalizat    1.0730        .30450       -.55329E-06    .29906E-04
  20  Prefactor     1.0897        .15068        .63756E-06    .83408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.67126e-06
  norm       = 0
  Prefactor  = 31.9006
  norm       = 0
  Prefactor  = 3.33067e-10
  Prefactor  = 5.39588
  Prefactor  = 0.691039
  Prefactor  = 0.0001
  norm       = 1.91246
  norm       = 1.86803
  Prefactor  = 18.7196
  Prefactor  = 7.2862e-05
  Prefactor  = 3.9282
  Prefactor  = 1.60191
  Prefactor  = 10.2429
  Prefactor  = 95.0713
  Prefactor  = 19.1729
  Prefactor  = 2.77556e-10
  Normalizat = 1.07299
  Prefactor  = 1.08973
 **********
 **   18 **HESSE 
 **********

 FCN=   10693.54     FROM HESSE     STATUS=OK           347 CALLS     1976 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46713E-05    23.916        .14583E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm           .0000        .33193        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.901        19.111        .17696E-03   -1.5595    
   4  norm           .0000        1.3025        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .33307E-09    14.770        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.3959        13.711        .43028E-03   -1.5662    
   7  Prefactor     .69104        .24729        .65593E-02   -1.5542    
   8  Prefactor     .10000E-03    5.0129        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.9125        1.0107        .75116E-03   -1.5680    
  10  norm          1.8680        1.9761        .76232E-03   -1.5681    
  11  Prefactor     18.720        22.650        .23105E-03   -1.5621    
  12  Prefactor     .72862E-04    7.8209        .86968E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9282        .34117        .37417E-02   -1.5312    
  14  Prefactor     1.6019        9.9125        .82092E-03   -1.5683    
  15  Prefactor     10.243        35.284        .30329E-03   -1.5644    
  16  Prefactor     95.071        51.124        .10319E-03   -1.5513    
  17  Prefactor     19.173        9.2209        .22816E-03   -1.5620    
  18  Prefactor     .27756E-09    18.917        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0730        .26568        .97661E-01   -.90624    
  20  Prefactor     1.0897        .12921        .37990E-01   -.89795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25373e-07
Minuit parameter uncertainties:
  1  0.0211396
  2  6.78296e-08
  3  19.111
  4  4.2746e-07
  5  0.00013545
  6  13.7113
  7  0.247286
  8  2.47497e-06
  9  1.01068
  10  1.97607
  11  22.6497
  12  0.047743
  13  0.341174
  14  7.96968
  15  35.2848
  16  51.1243
  17  9.2209
  18  0.000149153
  19  0.266008
  20  0.129252
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.868e+00  1.976e+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:  1.090e+00  1.293e-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.073e+00  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.11e-08 +/- 2.23e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 2.89e-05

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

Saving results to:
/scratch/kocevski/708588/likelihoodResults_688521601_688780801_4FGL_J2243.9+2021_daily_bin1733.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) = 10693.2434303
delta logL = 0.300757453071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10693.2367379
delta logL = 0.307449878681

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7082       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1940       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0587       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0913       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=   10693.24     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      240 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7081        1.7885        .11155E-04    .39117E-02
   2  alpha         2.1941        .64318        .14348E-01    .45311E-04
   3  Normalizat    1.0587        .27486        .43512E-03   -.10420E-03
   4  Prefactor     1.0913        .14681        .22788E-03   -.28509E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.70807
  alpha      = 2.19407
  Normalizat = 1.0587
  Prefactor  = 1.09133
 **********
 **   18 **HESSE 
 **********

 FCN=   10693.24     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7081        1.7145        .44618E-06   -1.5682    
   2  alpha         2.1941        .61693        .57392E-03   -.12268    
   3  Normalizat    1.0587        .27484        .17405E-04   -.91089    
   4  Prefactor     1.0913        .14684        .45575E-04   -.89744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20378e-10
Minuit parameter uncertainties:
  1  1.71449
  2  0.623473
  3  0.275213
  4  0.14689
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/708588': 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) = 10693.2367379
delta logL = 0.307449891265

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.708e+00  1.714e+00  0.000e+00  1.000e+06 ( 1.000e-12)
289        alpha:  2.194e+00  6.235e-01  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:  1.091e+00  1.469e-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.059e+00  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.07
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.19 +/- 0.62
Photon Flux (Free Index): 4.01e-08 +/- 4.07e-08
Energy Flux (Free Index): 1.96e-05 +/- 1.86e-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/708588/cmap_HighResolution_688521601_688780801_4FGL_J2243.9+2021_daily_bin1733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-05', comment='SUCCESS', photon_flux='2.11e-08', energy_flux2='1.96e-05', photon_flux_error='2.23e-08', dlogl='3.07e-01', energy_flux='2.74e-05', photon_flux2='4.01e-08', job_status='DONE', time_completed='2022-10-30 00:50:19.873238', photon_index_error2='0.62', photon_index2='2.19', ts='1.43', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='7.07e-08', energy_flux_error2='1.86e-05', EG='1.07', time_epoch_completed='1667116219.87', return_code='0', job_id='708588', GAL2='1.09', EG2='1.06', return_code2='0', energy_flux_error='2.89e-05', photon_flux_error2='4.07e-08', ts2='2.07', photon_index='1.72' WHERE bin_id='1733' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Oct 30 00:50:19 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0164>
Subject: Job 708588: <4FGL_J2243.9+2021_daily_bin1733> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1733> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Oct 30 00:35:37 2022
Job was executed on host(s) <bullet0164>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 30 00:35:38 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 30 00:35:38 2022
Terminated at Sun Oct 30 00:50:20 2022
Results reported at Sun Oct 30 00:50:20 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1733 340.99 20.3565 688521601 688780801 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 :                                   811.29 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             319.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            883 sec.

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

