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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin498
RA = 340.99, Dec = 20.3565
tmin = 368409601, tmax = 368668801
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='448285', job_status='RUN', time_executed='2021-09-28 19:13:42.646505', time_epoch_executed='1632881622.65' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448285

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448285/ft1_4FGL_J2243.9+2021_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448285/ft2_4FGL_J2243.9+2021_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448285/ft1_4FGL_J2243.9+2021_daily_bin498.fits outfile=/scratch/kocevski/448285/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin498.fits ra=340.99 dec=20.3565 rad=12.0 tmin=368409601.0 tmax=368668801.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.27
user 3.07
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448285/ft1_filtered_4FGL_J2243.9+2021_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/448285/ft2_4FGL_J2243.9+2021_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/448285/ltcube_368409601_368668801_4FGL_J2243.9+2021_daily_bin498.fits outfile=/scratch/kocevski/448285/expmap_368409601_368668801_4FGL_J2243.9+2021_daily_bin498.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/448285/ltcube_368409601_368668801_4FGL_J2243.9+2021_daily_bin498.fits
.....................!
real 190.86
user 186.68
sys 3.86

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/448285/ft1_filtered_4FGL_J2243.9+2021_daily_bin498.fits scfile=/scratch/kocevski/448285/ft2_4FGL_J2243.9+2021_daily_bin498.fits outfile=/scratch/kocevski/448285/cmap_368409601_368668801_4FGL_J2243.9+2021_daily_bin498.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448285/ft1_filtered_4FGL_J2243.9+2021_daily_bin498.fits scfile=/scratch/kocevski/448285/ft2_4FGL_J2243.9+2021_daily_bin498.fits outfile=/scratch/kocevski/448285/cmap_HighResolution_368409601_368668801_4FGL_J2243.9+2021_daily_bin498.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.786       1.0000         .10000E-03   10000.    
     2 'norm      '    .46956       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.736       1.0000         .10000E-03   10000.    
     4 'norm      '    .36656       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8047       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1588       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.092       1.0000         .10000E-03   10000.    
    10 'norm      '    4.0951       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.584       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7015       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2318       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20844       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.231       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.314       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.3304       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.436       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .34014       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1766       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=   7622.042     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2907 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.777        44.075       -.97996E-05   -.10482E-03
   2  norm          .46943        .75844       -.70183E-08   -.35774E-04
   3  Prefactor     17.731        18.912       -.32499E-06   -.37584E-05
   4  norm          .37624        2.7355       -.50174E-06    .11950E-04
   5  Prefactor     .10000E-03    7.9215        .22018E-06** at limit **
   6  Prefactor     .10000E-03    41.798        .13773E-06** at limit **
   7  Prefactor     4.7920        15.208       -.51261E-06    .15791E-04
   8  Prefactor     1.1587        .26872       -.23300E-07    .60174E-04
   9  Prefactor     13.091        8.4519       -.40682E-07   -.10115E-04
  10  norm          4.0947        1.4391        .22203E-06   -.37844E-04
  11  Prefactor     15.574        22.777       -.65320E-05   -.14360E-03
  12  norm          2.7017        2.1355       -.51553E-07    .16380E-03
  13  Prefactor     .10000E-03    13.426        .35187E-05** at limit **
  14  Prefactor     .10000E-03    14.696       -.39243E-05** at limit **
  15  Prefactor     1.2313        31.916       -.38608E-06   -.71505E-04
  16  Prefactor     .20843        .12857       -.33893E-07   -.48018E-03
  17  Prefactor     20.229        12.938       -.27301E-06    .19811E-04
  18  Prefactor     .10000E-03    9.8196       -.62878E-06** at limit **
  19  Prefactor     .10000E-03    3.4511        .15066E-06** at limit **
  20  Prefactor     .10000E-03    21.076        .75083E-06** at limit **
  21  Prefactor     23.312        20.362       -.83997E-06   -.32503E-04
  22  Prefactor     3.3299        3.4129        .12140E-05   -.24966E-02
  23  Prefactor     22.427        19.356       -.35782E-05   -.14311E-03
  24  Normalizat    .34056        .29249        .15486E-05    .10479E-03
  25  Prefactor     1.1765        .14966        .57654E-06    .72705E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.7767
  norm       = 0.469426
  Prefactor  = 17.7311
  norm       = 0.376237
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.79201
  Prefactor  = 1.15868
  Prefactor  = 13.0912
  norm       = 4.09475
  Prefactor  = 15.5743
  norm       = 2.70167
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.2313
  Prefactor  = 0.208434
  Prefactor  = 20.2288
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3122
  Prefactor  = 3.32994
  Prefactor  = 22.4274
  Normalizat = 0.340557
  Prefactor  = 1.17647
 **********
 **   18 **HESSE 
 **********

 FCN=   7622.042     FROM HESSE     STATUS=OK           435 CALLS     3342 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.777        44.350        .73411E-04   -1.4616    
   2  norm          .46943        .75902        .44583E-04   -1.5571    
   3  Prefactor     17.731        18.836        .95104E-04   -1.4866    
   4  norm          .37624        6.1548        .27533E-02   -1.5585    
   5  Prefactor     .10000E-03    7.9520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    41.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.7920        14.729        .18354E-03   -1.5270    
   8  Prefactor     1.1587        .26696        .20292E-04   -1.5493    
   9  Prefactor     13.091        8.4670        .11070E-03   -1.4984    
  10  norm          4.0947        1.4315        .56686E-04   -1.5303    
  11  Prefactor     15.574        22.938        .10146E-03   -1.4918    
  12  norm          2.7017        2.1247        .10885E-03   -1.5379    
  13  Prefactor     .10000E-03    13.447        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2313        32.214        .40504E-03   -1.5486    
  16  Prefactor     .20843        .12481        .22552E-04   -1.5617    
  17  Prefactor     20.229        12.889        .89047E-04   -1.4808    
  18  Prefactor     .10000E-03    10.176        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    3.4548        .15839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    21.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     23.312        20.370        .82959E-04   -1.4742    
  22  Prefactor     3.3299        6.6030        .11090E-02   -1.5343    
  23  Prefactor     22.427        19.430        .84563E-04   -1.4760    
  24  Normalizat    .34056        .26029        .54225E-03   -1.2050    
  25  Prefactor     1.1765        .13873        .16904E-03   -.87059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.8918e-09
Minuit parameter uncertainties:
  1  44.3995
  2  0.759035
  3  18.842
  4  3.04342
  5  3.66952e-06
  6  7.78439e-06
  7  14.7404
  8  0.266959
  9  8.46774
  10  1.43153
  11  22.9507
  12  2.12477
  13  8.81024e-05
  14  0.00011184
  15  12.603
  16  0.124809
  17  12.8903
  18  3.43892e-05
  19  9.9944e-08
  20  9.50526e-06
  21  20.376
  22  6.60448
  23  19.435
  24  0.261223
  25  0.138775
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.702e+00  2.125e+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:  1.176e+00  1.388e-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:  3.406e-01  2.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.82
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.05e-08 +/- 2.40e-08
Energy Flux (Fixed Index): 3.96e-05 +/- 3.11e-05

TS (Fixed Index): 2.82
Ra Dec: 340.990 20.357
Photon Flux Upper Limit: 8.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/448285/likelihoodResults_368409601_368668801_4FGL_J2243.9+2021_daily_bin498.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) = 7619.75031332
delta logL = 2.29120225134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7619.7429119
delta logL = 2.29860366703

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5992       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7706       1.0000          .0000       5.0000    
     3 'Normalizat'    .24784       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1989       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=   7619.743     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      245 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5989        10.471        .83821E-02    .55776E-03
   2  alpha         2.7707        2.0801        .18918        .10430E-03
   3  Normalizat    .24783        .80218E-01    .14321        .95510E-04
   4  Prefactor     1.1990        .39786E-01    .34657E-01   -.18226E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.59894
  alpha      = 2.77073
  Normalizat = 0.247826
  Prefactor  = 1.199
 **********
 **   18 **HESSE 
 **********

 FCN=   7619.743     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5989        1.7216        .49550E-04   -1.5455    
   2  alpha         2.7707        .58169        .75640E-02    .10851    
   3  Normalizat    .24783        .24736        .63084E-03   -1.2610    
   4  Prefactor     1.1990        .13737        .16731E-03   -.86362    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60498e-11
Minuit parameter uncertainties:
  1  1.72169
  2  0.587134
  3  0.248463
  4  0.137415
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448285': 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) = 7619.74291077
delta logL = 2.2986047987

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.599e+00  1.722e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.771e+00  5.871e-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:  1.199e+00  1.374e-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:  2.478e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.52
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.77 +/- 0.59
Photon Flux (Free Index): 1.14e-07 +/- 6.04e-08
Energy Flux (Free Index): 2.94e-05 +/- 1.49e-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/448285/cmap_HighResolution_368409601_368668801_4FGL_J2243.9+2021_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-04', comment='SUCCESS', photon_flux='3.05e-08', energy_flux2='2.94e-05', photon_flux_error='2.40e-08', dlogl='2.30e+00', energy_flux='3.96e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-28 19:26:09.656880', photon_index_error2='0.59', photon_index2='2.77', ts='2.82', fit_tolerance='1e-08', GAL='1.18', photon_index_error='0.00', photon_flux_upper_limit='8.47e-08', energy_flux_error2='1.49e-05', EG='0.34', time_epoch_completed='1632882369.66', return_code='0', job_id='448285', GAL2='1.20', EG2='0.25', return_code2='0', energy_flux_error='3.11e-05', photon_flux_error2='6.04e-08', ts2='7.52', photon_index='1.72' WHERE bin_id='498' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:26:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 448285: <4FGL_J2243.9+2021_daily_bin498> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin498> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:51 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:53 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:53 2021
Terminated at Tue Sep 28 19:26:09 2021
Results reported at Tue Sep 28 19:26:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin498 340.99 20.3565 368409601 368668801 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 :                                   747.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             324.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

