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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1664
RA = 340.99, Dec = 20.3565
tmin = 670636801, tmax = 670896001
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='316808', job_status='RUN', time_executed='2022-04-06 00:36:13.816365', time_epoch_executed='1649230573.82' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/316808

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/316808/ft1_4FGL_J2243.9+2021_daily_bin1664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/316808/ft2_4FGL_J2243.9+2021_daily_bin1664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/316808/ft1_4FGL_J2243.9+2021_daily_bin1664.fits outfile=/scratch/kocevski/316808/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1664.fits ra=340.99 dec=20.3565 rad=12.0 tmin=670636801.0 tmax=670896001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.35
user 5.08
sys 0.25

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

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

Number of photons that the gtmktime cut: 693

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/316808/ft1_filtered_4FGL_J2243.9+2021_daily_bin1664.fits evtable="EVENTS" scfile=/scratch/kocevski/316808/ft2_4FGL_J2243.9+2021_daily_bin1664.fits sctable="SC_DATA" expcube=/scratch/kocevski/316808/ltcube_670636801_670896001_4FGL_J2243.9+2021_daily_bin1664.fits outfile=/scratch/kocevski/316808/expmap_670636801_670896001_4FGL_J2243.9+2021_daily_bin1664.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/316808/ltcube_670636801_670896001_4FGL_J2243.9+2021_daily_bin1664.fits
.....................!
real 190.02
user 185.17
sys 4.50

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/316808/ft1_filtered_4FGL_J2243.9+2021_daily_bin1664.fits scfile=/scratch/kocevski/316808/ft2_4FGL_J2243.9+2021_daily_bin1664.fits outfile=/scratch/kocevski/316808/cmap_670636801_670896001_4FGL_J2243.9+2021_daily_bin1664.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/316808/ft1_filtered_4FGL_J2243.9+2021_daily_bin1664.fits scfile=/scratch/kocevski/316808/ft2_4FGL_J2243.9+2021_daily_bin1664.fits outfile=/scratch/kocevski/316808/cmap_HighResolution_670636801_670896001_4FGL_J2243.9+2021_daily_bin1664.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.807       1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    111.33       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1992       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .92435       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.6900       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.7161       1.0000         .10000E-03   10000.    
    12 'norm      '    1.1829       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .43711       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.4698       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.7622       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6303       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.590       1.0000         .10000E-03   10000.    
    21 'Prefactor '    59.981       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.284       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0535       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89145       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=   7686.158     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2944 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.664        .14988E-05** at limit **
   2  norm          .10000E-03    .35737       -.10192E-07** at limit **
   3  Prefactor     13.807        13.074       -.29514E-06   -.19187E-04
   4  norm          .10000E-03    2.1437       -.13691E-06** at limit **
   5  Prefactor     .10000E-03    10.515        .78141E-07** at limit **
   6  Prefactor     111.34        115.61        .41529E-05    .69658E-04
   7  Prefactor     6.1984        7.9343        .12411E-05   -.73353E-03
   8  Prefactor     .92438        .26067       -.89098E-09   -.53213E-03
   9  Prefactor     .10000E-03    2.0118       -.10902E-06** at limit **
  10  norm          2.6901        1.2145       -.59161E-07   -.21545E-03
  11  Prefactor     6.7162        12.114        .21841E-07   -.19210E-04
  12  norm          1.1826        1.2933       -.51315E-07   -.14046E-03
  13  Prefactor     .10000E-03    18.681        .90663E-06** at limit **
  14  Prefactor     2.8576        12.514        .80374E-07   -.55994E-04
  15  Prefactor     .10000E-03    7.3810       -.24880E-07** at limit **
  16  Prefactor     .43710        .16577       -.17970E-07   -.12820E-02
  17  Prefactor     6.4698        13.719        .58093E-06    .18227E-05
  18  Prefactor     6.7622        6.1920        .23208E-07   -.39289E-04
  19  Prefactor     4.6286        12.501        .10169E-05    .20976E-04
  20  Prefactor     14.585        25.904       -.28386E-05   -.11800E-03
  21  Prefactor     59.987        38.258        .27343E-05    .19825E-03
  22  Prefactor     19.286        9.6310        .22004E-06   -.32987E-03
  23  Prefactor     .10000E-03    8.1774        .43014E-07** at limit **
  24  Normalizat    1.0534        .24003       -.32849E-07   -.25274E-04
  25  Prefactor     .89148        .11929       -.44838E-06    .38248E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.8075
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 111.341
  Prefactor  = 6.19844
  Prefactor  = 0.924383
  Prefactor  = 0.0001
  norm       = 2.69009
  Prefactor  = 6.7162
  norm       = 1.18256
  Prefactor  = 0.0001
  Prefactor  = 2.85758
  Prefactor  = 0.0001
  Prefactor  = 0.437101
  Prefactor  = 6.46976
  Prefactor  = 6.76215
  Prefactor  = 4.62856
  Prefactor  = 14.5847
  Prefactor  = 59.9866
  Prefactor  = 19.2862
  Prefactor  = 0.0001
  Normalizat = 1.05337
  Prefactor  = 0.891475
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.158     FROM HESSE     STATUS=OK           433 CALLS     3377 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .48050        .10141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.807        13.076        .10779E-03   -1.4965    
   4  norm          .10000E-03    2.1674        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     111.34        116.45        .38123E-04   -1.3594    
   7  Prefactor     6.1984        11.346        .80617E-03   -1.5210    
   8  Prefactor     .92438        .26056        .22441E-04   -1.5516    
   9  Prefactor     .10000E-03    2.0126        .12144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.6901        1.2151        .61787E-04   -1.5380    
  11  Prefactor     6.7162        12.110        .15483E-03   -1.5190    
  12  norm          1.1826        1.2765        .99806E-04   -1.5490    
  13  Prefactor     .10000E-03    18.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8576        12.357        .24052E-03   -1.5370    
  15  Prefactor     .10000E-03    7.3846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .43710        .16467        .20713E-04   -1.5576    
  17  Prefactor     6.4698        13.692        .15779E-03   -1.5199    
  18  Prefactor     6.7622        6.1870        .15430E-03   -1.5188    
  19  Prefactor     4.6286        12.495        .18704E-03   -1.5278    
  20  Prefactor     14.585        26.396        .10486E-03   -1.4944    
  21  Prefactor     59.987        38.759        .51805E-04   -1.4157    
  22  Prefactor     19.286        9.8280        .45603E-03   -1.4829    
  23  Prefactor     .10000E-03    8.1846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0534        .28569        .35336E-03   -.91263    
  25  Prefactor     .89148        .14104        .19981E-03   -.96440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45954e-09
Minuit parameter uncertainties:
  1  0.000289975
  2  1.37834e-06
  3  13.0787
  4  3.33802e-06
  5  1.0715e-05
  6  116.689
  7  11.3496
  8  0.260557
  9  3.04047e-06
  10  1.2151
  11  12.1146
  12  1.27655
  13  9.14874e-05
  14  11.8885
  15  5.58903e-07
  16  0.164674
  17  13.6982
  18  6.18763
  19  12.5018
  20  26.4168
  21  38.7752
  22  9.82881
  23  3.01962e-06
  24  0.286103
  25  0.141095
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.183e+00  1.277e+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.915e-01  1.411e-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.053e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.44e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.87e-05

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

Saving results to:
/scratch/kocevski/316808/likelihoodResults_670636801_670896001_4FGL_J2243.9+2021_daily_bin1664.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) = 7686.04405348
delta logL = 0.114001928527

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7686.04232113
delta logL = 0.115734278961

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1185       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1156       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0447       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89281       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=   7686.042     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      201 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1180        25.481        .11114E-01    .89118E-03
   2  alpha         2.1156        3.2853        .41784        .18793E-04
   3  Normalizat    1.0448        .76219E-01    .80109E-01   -.32299E-03
   4  Prefactor     .89278        .33515E-01    .44913E-01   -.39909E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.11802
  alpha      = 2.11558
  Normalizat = 1.04482
  Prefactor  = 0.892776
 **********
 **   18 **HESSE 
 **********

 FCN=   7686.042     FROM HESSE     STATUS=OK            31 CALLS      232 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1180        1.2404        .90012E-04   -1.5496    
   2  alpha         2.1156        .84487        .18576E-01   -.15438    
   3  Normalizat    1.0448        .26558        .35462E-03   -.91544    
   4  Prefactor     .89278        .13984        .19965E-03   -.96394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24117e-10
Minuit parameter uncertainties:
  1  1.24046
  2  0.862279
  3  0.265916
  4  0.139897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/316808': 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) = 7686.04232098
delta logL = 0.115734422114

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.118e+00  1.240e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.116e+00  8.623e-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.928e-01  1.399e-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.045e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.12 +/- 0.86
Photon Flux (Free Index): 2.29e-08 +/- 3.16e-08
Energy Flux (Free Index): 1.28e-05 +/- 1.43e-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/316808/cmap_HighResolution_670636801_670896001_4FGL_J2243.9+2021_daily_bin1664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.14e-05', comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='1.28e-05', photon_flux_error='1.44e-08', dlogl='1.16e-01', energy_flux='1.73e-05', photon_flux2='2.29e-08', job_status='DONE', time_completed='2022-04-06 00:48:49.416361', photon_index_error2='0.86', photon_index2='2.12', ts='2.10', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='5.51e-08', energy_flux_error2='1.43e-05', EG='1.05', time_epoch_completed='1649231329.42', return_code='0', job_id='316808', GAL2='0.89', EG2='1.04', return_code2='0', energy_flux_error='1.87e-05', photon_flux_error2='3.16e-08', ts2='2.33', photon_index='1.72' WHERE bin_id='1664' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Apr  6 00:48:49 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 316808: <4FGL_J2243.9+2021_daily_bin1664> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1664> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Apr  6 00:35:51 2022
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Apr  6 00:35:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Apr  6 00:35:53 2022
Terminated at Wed Apr  6 00:48:50 2022
Results reported at Wed Apr  6 00:48:50 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1664 340.99 20.3565 670636801 670896001 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.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            779 sec.

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

