/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 104 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 = 7472
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin516
RA = 340.99, Dec = 20.3565
tmin = 373075201, tmax = 373334401
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='448315', job_status='RUN', time_executed='2021-09-28 19:12:49.369657', time_epoch_executed='1632881569.37' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='516'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448315

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448315/ft1_4FGL_J2243.9+2021_daily_bin516.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448315/ft2_4FGL_J2243.9+2021_daily_bin516.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448315/ft1_4FGL_J2243.9+2021_daily_bin516.fits outfile=/scratch/kocevski/448315/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin516.fits ra=340.99 dec=20.3565 rad=12.0 tmin=373075201.0 tmax=373334401.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.69
user 3.47
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/448315/ft2_4FGL_J2243.9+2021_daily_bin516.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/448315/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin516.fits evtable="EVENTS" outfile="/scratch/kocevski/448315/ft1_filtered_4FGL_J2243.9+2021_daily_bin516.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.51
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448315/ft1_filtered_4FGL_J2243.9+2021_daily_bin516.fits" evtable="EVENTS" scfile=/scratch/kocevski/448315/ft2_4FGL_J2243.9+2021_daily_bin516.fits sctable="SC_DATA" outfile=/scratch/kocevski/448315/ltcube_373075201_373334401_4FGL_J2243.9+2021_daily_bin516.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/448315/ft2_4FGL_J2243.9+2021_daily_bin516.fits
.....................!
real 12.03
user 11.70
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448315/ft1_filtered_4FGL_J2243.9+2021_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/448315/ft2_4FGL_J2243.9+2021_daily_bin516.fits sctable="SC_DATA" expcube=/scratch/kocevski/448315/ltcube_373075201_373334401_4FGL_J2243.9+2021_daily_bin516.fits outfile=/scratch/kocevski/448315/expmap_373075201_373334401_4FGL_J2243.9+2021_daily_bin516.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/448315/ltcube_373075201_373334401_4FGL_J2243.9+2021_daily_bin516.fits
.....................!
real 190.12
user 185.47
sys 4.24

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448315/ft1_filtered_4FGL_J2243.9+2021_daily_bin516.fits scfile=/scratch/kocevski/448315/ft2_4FGL_J2243.9+2021_daily_bin516.fits outfile=/scratch/kocevski/448315/cmap_HighResolution_373075201_373334401_4FGL_J2243.9+2021_daily_bin516.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/448315/ft1_filtered_4FGL_J2243.9+2021_daily_bin516.fits evtable="EVENTS" scfile=/scratch/kocevski/448315/ft2_4FGL_J2243.9+2021_daily_bin516.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/448315/Model_4FGL_J2243.9+2021_daily_bin516.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/448315/ft1_filtered_4FGL_J2243.9+2021_daily_bin516.fits.....................!
real 81.72
user 80.37
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.361       1.0000         .10000E-03   10000.    
     2 'norm      '    3.3560       1.0000         .10000E-03   10000.    
     3 'Prefactor '    23.189       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2718       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.8311       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11537E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0679       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .25905E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.963       1.0000         .10000E-03   10000.    
    12 'norm      '    3.3505       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.823       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3850       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .62477       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.0393       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.300       1.0000         .10000E-03   10000.    
    21 'Prefactor '    34.573       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3441       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93932       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82153       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=   7889.745     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3335 TOTAL
                     EDM=   .95E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.327        55.711        .25802E-05   -.25166E-04
   2  norm          3.3557        1.2942        .17088E-07   -.13420E-03
   3  Prefactor     23.180        15.872        .72093E-06   -.88068E-04
   4  norm          3.2704        4.6998        .28661E-05   -.96966E-04
   5  Prefactor     6.8277        18.257        .56100E-06    .13707E-05
   6  Prefactor     .10000E-03    209.63        .15409E-05** at limit **
   7  Prefactor     .10000E-03    4.6371       -.13021E-06** at limit **
   8  Prefactor     2.0679        .34851        .85203E-08   -.34400E-04
   9  Prefactor     .10000E-03    5.5640        .25195E-07** at limit **
  10  norm          .10000E-03    .62157        .52444E-06** at limit **
  11  Prefactor     13.000        19.439       -.13885E-05   -.19064E-03
  12  norm          3.3506        2.0607       -.12910E-06   -.29956E-04
  13  Prefactor     .10000E-03    82.898       -.17088E-05** at limit **
  14  Prefactor     14.816        16.284        .18938E-05   -.10126E-04
  15  Prefactor     .10000E-03    5.8696        .31693E-07** at limit **
  16  Prefactor     1.3850        .23301        .85538E-08    .41767E-03
  17  Prefactor     .65335        6.9744        .43350E-06   -.12988E-03
  18  Prefactor     2.0383        5.5215        .56054E-06   -.81538E-07
  19  Prefactor     .10000E-03    4.2284        .24363E-07** at limit **
  20  Prefactor     11.287        25.141        .32058E-06   -.10923E-05
  21  Prefactor     34.579        32.212        .11378E-06   -.33395E-05
  22  Prefactor     1.3409        6.5817        .13425E-05   -.82923E-07
  23  Prefactor     .10000E-03    7.4158        .45238E-07** at limit **
  24  Normalizat    .93957        .23523       -.13766E-05   -.17166E-03
  25  Prefactor     .82153        .11663       -.51252E-06   -.26667E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.3273
  norm       = 3.35575
  Prefactor  = 23.1797
  norm       = 3.27038
  Prefactor  = 6.82772
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.06788
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.0003
  norm       = 3.35056
  Prefactor  = 0.0001
  Prefactor  = 14.8157
  Prefactor  = 0.0001
  Prefactor  = 1.38498
  Prefactor  = 0.653351
  Prefactor  = 2.03831
  Prefactor  = 0.0001
  Prefactor  = 11.2872
  Prefactor  = 34.5787
  Prefactor  = 1.34093
  Prefactor  = 0.0001
  Normalizat = 0.939572
  Prefactor  = 0.821525
 **********
 **   18 **HESSE 
 **********

 FCN=   7889.745     FROM HESSE     STATUS=OK           435 CALLS     3770 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.327        55.626        .23126E-03   -1.3970    
   2  norm          3.3557        1.2924        .30053E-03   -1.5342    
   3  Prefactor     23.180        15.855        .83182E-04   -1.4745    
   4  norm          3.2704        4.7046        .11131E-02   -1.5346    
   5  Prefactor     6.8277        18.292        .15351E-03   -1.5185    
   6  Prefactor     .10000E-03    210.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.6467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0679        .35011        .19654E-04   -1.5420    
   9  Prefactor     .10000E-03    5.6426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    2.2705        .12745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.000        19.201        .11125E-03   -1.4987    
  12  norm          3.3506        2.0610        .92776E-04   -1.5342    
  13  Prefactor     .10000E-03    83.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.816        16.311        .10403E-03   -1.4938    
  15  Prefactor     .10000E-03    5.8711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3850        .23308        .16499E-04   -1.5473    
  17  Prefactor     .65335        55.819        .43014E-02   -1.5546    
  18  Prefactor     2.0383        5.5075        .28960E-03   -1.5422    
  19  Prefactor     .10000E-03    4.2402        .17838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.287        25.100        .11918E-03   -1.5036    
  21  Prefactor     34.579        32.188        .68153E-04   -1.4531    
  22  Prefactor     1.3409        6.6039        .37782E-03   -1.5476    
  23  Prefactor     .10000E-03    7.4272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93957        .27080        .36866E-03   -.95083    
  25  Prefactor     .82153        .13642        .20607E-03   -.98940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4905e-10
Minuit parameter uncertainties:
  1  55.6649
  2  1.2924
  3  15.8579
  4  4.7051
  5  18.3072
  6  0.00041074
  7  1.47891e-05
  8  0.350105
  9  4.80343e-06
  10  3.79691e-05
  11  19.2105
  12  2.06103
  13  0.000128279
  14  16.3161
  15  1.34444e-06
  16  0.23308
  17  12.0887
  18  5.50882
  19  3.00366e-06
  20  25.1237
  21  32.2037
  22  5.9524
  23  2.79256e-06
  24  0.271196
  25  0.136479
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.351e+00  2.061e+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.215e-01  1.365e-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:  9.396e-01  2.712e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.76
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.78e-08 +/- 2.33e-08
Energy Flux (Fixed Index): 4.91e-05 +/- 3.02e-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) = 7889.67145351
delta logL = 0.0740228815894

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7889.66968756
delta logL = 0.0757888323324

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4366       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9295       1.0000          .0000       5.0000    
     3 'Normalizat'    .92789       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82287       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=   7889.670     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      242 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4366        1.9219        .88509E-04   -.17340E-04
   2  alpha         1.9295        .53868        .15419E-01   -.17903E-04
   3  Normalizat    .92789        .25670        .37059E-03    .32211E-04
   4  Prefactor     .82287        .13477        .20582E-03    .19995E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.43662
  alpha      = 1.92947
  Normalizat = 0.927891
  Prefactor  = 0.822872
 **********
 **   18 **HESSE 
 **********

 FCN=   7889.670     FROM HESSE     STATUS=OK            25 CALLS      267 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4366        1.9141        .35404E-05   -1.5337    
   2  alpha         1.9295        .53592        .61677E-03   -.23024    
   3  Normalizat    .92789        .25674        .14824E-04   -.95487    
   4  Prefactor     .82287        .13487        .82329E-05   -.98891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29518e-11
Minuit parameter uncertainties:
  1  1.91412
  2  0.540345
  3  0.257084
  4  0.134927
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448315': 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) = 7889.66968756
delta logL = 0.0757888326398

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  3.437e+00  1.914e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.929e+00  5.403e-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.229e-01  1.349e-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:  9.279e-01  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.89
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.93 +/- 0.54
Photon Flux (Free Index): 5.22e-08 +/- 4.96e-08
Energy Flux (Free Index): 4.15e-05 +/- 2.75e-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/448315/cmap_HighResolution_373075201_373334401_4FGL_J2243.9+2021_daily_bin516.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.78e-08', energy_flux2='4.15e-05', photon_flux_error='2.33e-08', dlogl='7.58e-02', energy_flux='4.91e-05', photon_flux2='5.22e-08', job_status='DONE', time_completed='2021-09-28 19:24:58.388103', photon_index_error2='0.54', photon_index2='1.93', ts='11.76', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='2.75e-05', EG='0.94', time_epoch_completed='1632882298.39', return_code='0', job_id='448315', GAL2='0.82', EG2='0.93', return_code2='0', energy_flux_error='3.02e-05', photon_flux_error2='4.96e-08', ts2='11.89', photon_index='1.72' WHERE bin_id='516' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 448315: <4FGL_J2243.9+2021_daily_bin516> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin516> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:54 2021
Job was executed on host(s) <bullet0046>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:10:56 2021
Terminated at Tue Sep 28 19:24:58 2021
Results reported at Tue Sep 28 19:24:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin516 340.99 20.3565 373075201 373334401 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 :                                   728.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   842 sec.
    Turnaround time :                            844 sec.

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

