/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 74 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 = 7424
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin63
RA = 340.99, Dec = 20.3565
tmin = 255657601, tmax = 255916801
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='446606', job_status='RUN', time_executed='2021-09-28 19:06:55.549236', time_epoch_executed='1632881215.55' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='63'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/446606

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/446606/ft1_4FGL_J2243.9+2021_daily_bin63.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/446606/ft2_4FGL_J2243.9+2021_daily_bin63.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/446606/ft1_4FGL_J2243.9+2021_daily_bin63.fits outfile=/scratch/kocevski/446606/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin63.fits ra=340.99 dec=20.3565 rad=12.0 tmin=255657601.0 tmax=255916801.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 1.46
user 1.27
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/446606/ft1_filtered_4FGL_J2243.9+2021_daily_bin63.fits" evtable="EVENTS" scfile=/scratch/kocevski/446606/ft2_4FGL_J2243.9+2021_daily_bin63.fits sctable="SC_DATA" outfile=/scratch/kocevski/446606/ltcube_255657601_255916801_4FGL_J2243.9+2021_daily_bin63.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/446606/ft2_4FGL_J2243.9+2021_daily_bin63.fits
.....................!
real 12.42
user 12.07
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/446606/ft1_filtered_4FGL_J2243.9+2021_daily_bin63.fits evtable="EVENTS" scfile=/scratch/kocevski/446606/ft2_4FGL_J2243.9+2021_daily_bin63.fits sctable="SC_DATA" expcube=/scratch/kocevski/446606/ltcube_255657601_255916801_4FGL_J2243.9+2021_daily_bin63.fits outfile=/scratch/kocevski/446606/expmap_255657601_255916801_4FGL_J2243.9+2021_daily_bin63.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/446606/ltcube_255657601_255916801_4FGL_J2243.9+2021_daily_bin63.fits
.....................!
real 191.21
user 186.11
sys 4.72

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/446606/ft1_filtered_4FGL_J2243.9+2021_daily_bin63.fits scfile=/scratch/kocevski/446606/ft2_4FGL_J2243.9+2021_daily_bin63.fits outfile=/scratch/kocevski/446606/cmap_255657601_255916801_4FGL_J2243.9+2021_daily_bin63.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.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/446606/ft1_filtered_4FGL_J2243.9+2021_daily_bin63.fits scfile=/scratch/kocevski/446606/ft2_4FGL_J2243.9+2021_daily_bin63.fits outfile=/scratch/kocevski/446606/cmap_HighResolution_255657601_255916801_4FGL_J2243.9+2021_daily_bin63.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.55
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.8206       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.011       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15671E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13122       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.5978       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0570       1.0000         .10000E-03   10000.    
    11 'Prefactor '    36.351       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1275       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.687       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.0144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7697       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.9546       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6907       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    25.640       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96538       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98708       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=   9281.074     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2901 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.284        .62385E-05** at limit **
   2  norm          3.8206        1.1099       -.99696E-07    .24530E-03
   3  Prefactor     .10000E-03    10.309       -.22254E-05** at limit **
   4  norm          .10000E-03    1.6282       -.54005E-07** at limit **
   5  Prefactor     .10000E-03    4.6353       -.18961E-06** at limit **
   6  Prefactor     36.997        67.537       -.22130E-04    .97408E-05
   7  Prefactor     .10003E-03    4.8265       -.17755E-05** at limit **
   8  Prefactor     .13117        .14200       -.15579E-06   -.58357E-02
   9  Prefactor     3.5978        4.5570       -.28480E-06   -.23410E-03
  10  norm          2.0580        1.3713        .20796E-05    .55216E-03
  11  Prefactor     36.329        27.370       -.25328E-04   -.41510E-04
  12  norm          2.1278        1.5373       -.14005E-06   -.34200E-03
  13  Prefactor     17.687        19.528       -.59021E-06    .51875E-05
  14  Prefactor     .10000E-03    9.6557        .43062E-05** at limit **
  15  Prefactor     .10000E-03    14.125        .45691E-05** at limit **
  16  Prefactor     1.0144        .17822       -.42468E-07    .62904E-03
  17  Prefactor     .10000E-03    4.2129        .37792E-07** at limit **
  18  Prefactor     2.7697        3.6692        .75233E-06   -.23024E-03
  19  Prefactor     .10000E-03    11.667       -.68846E-05** at limit **
  20  Prefactor     7.9535        15.951       -.22550E-05   -.31476E-04
  21  Prefactor     1.6909        21.052       -.20926E-05   -.19908E-03
  22  Prefactor     .10000E-03    2.2407       -.85312E-07** at limit **
  23  Prefactor     25.641        17.262       -.84450E-07    .95837E-05
  24  Normalizat    .96534        .20354        .46296E-05    .13302E-03
  25  Prefactor     .98711        .10699        .19576E-06    .44692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.82057
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.9968
  Prefactor  = 0.000100033
  Prefactor  = 0.131168
  Prefactor  = 3.59784
  norm       = 2.05802
  Prefactor  = 36.3289
  norm       = 2.12783
  Prefactor  = 17.6871
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.01442
  Prefactor  = 0.0001
  Prefactor  = 2.76966
  Prefactor  = 0.0001
  Prefactor  = 7.95353
  Prefactor  = 1.69087
  Prefactor  = 0.0001
  Prefactor  = 25.6407
  Normalizat = 0.965341
  Prefactor  = 0.987114
 **********
 **   18 **HESSE 
 **********

 FCN=   9281.074     FROM HESSE     STATUS=OK           429 CALLS     3330 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.8206        1.1098        .52642E-04   -1.5317    
   3  Prefactor     .10000E-03    10.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6380        .12002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.6515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.997        67.540        .65878E-04   -1.4491    
   7  Prefactor     .10003E-03    21.562        .40400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .13117        .13137        .35653E-03   -1.5636    
   9  Prefactor     3.5978        4.5446        .21303E-03   -1.5329    
  10  norm          2.0580        1.3576        .81061E-04   -1.5421    
  11  Prefactor     36.329        27.310        .66471E-04   -1.4502    
  12  norm          2.1278        1.5376        .98488E-04   -1.5416    
  13  Prefactor     17.687        19.550        .95233E-04   -1.4867    
  14  Prefactor     .10000E-03    9.8068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.0144        .17872        .16026E-04   -1.5507    
  17  Prefactor     .10000E-03    4.2261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7697        3.6568        .20602E-03   -1.5375    
  19  Prefactor     .10000E-03    11.798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     7.9535        15.937        .14216E-03   -1.5144    
  21  Prefactor     1.6909        21.152        .32374E-03   -1.5448    
  22  Prefactor     .10000E-03    2.2632        .14073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     25.641        17.250        .79112E-04   -1.4695    
  24  Normalizat    .96534        .23682        .35288E-03   -.94201    
  25  Prefactor     .98711        .12707        .19144E-03   -.93160    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.53282e-09
Minuit parameter uncertainties:
  1  2.5939e-05
  2  1.10978
  3  2.50672e-05
  4  5.07534e-06
  5  8.06278e-06
  6  67.6798
  7  0.0016844
  8  0.13137
  9  4.54507
  10  1.35761
  11  27.3192
  12  1.53762
  13  19.5568
  14  5.96927e-05
  15  4.04881e-05
  16  0.178716
  17  6.45791e-06
  18  3.65713
  19  4.86063e-05
  20  15.9454
  21  11.9658
  22  1.07952e-05
  23  17.2531
  24  0.237074
  25  0.127104
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.128e+00  1.538e+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:  9.871e-01  1.271e-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.653e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.45
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.40e-08 +/- 1.74e-08
Energy Flux (Fixed Index): 3.12e-05 +/- 2.25e-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) = 9280.95177138
delta logL = 0.122581519179

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9280.9462123
delta logL = 0.128140598179

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0370       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9755       1.0000          .0000       5.0000    
     3 'Normalizat'    .95811       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98783       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=   9280.946     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      211 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0370        34.439        .72447E-02   -.94304E-04
   2  alpha         1.9755        3.2585        .28503        .65396E-04
   3  Normalizat    .95811        .98137E-01    .79972E-01    .22052E-03
   4  Prefactor     .98783        .44637E-01    .46115E-01    .38401E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.03695
  alpha      = 1.97548
  Normalizat = 0.958112
  Prefactor  = 0.987835
 **********
 **   18 **HESSE 
 **********

 FCN=   9280.946     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0370        1.4864        .88872E-04   -1.5423    
   2  alpha         1.9755        .51231        .14893E-01   -.21138    
   3  Normalizat    .95811        .22905        .35398E-03   -.94447    
   4  Prefactor     .98783        .12623        .19133E-03   -.93136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60786e-11
Minuit parameter uncertainties:
  1  1.48645
  2  0.516132
  3  0.229286
  4  0.126267
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/446606': 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) = 9280.9462123
delta logL = 0.128140599267

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.037e+00  1.486e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.975e+00  5.161e-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:  9.878e-01  1.263e-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.581e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.69
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.98 +/- 0.52
Photon Flux (Free Index): 3.32e-08 +/- 2.79e-08
Energy Flux (Free Index): 2.40e-05 +/- 2.04e-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/446606/cmap_HighResolution_255657601_255916801_4FGL_J2243.9+2021_daily_bin63.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.40e-08', energy_flux2='2.40e-05', photon_flux_error='1.74e-08', dlogl='1.28e-01', energy_flux='3.12e-05', photon_flux2='3.32e-08', job_status='DONE', time_completed='2021-09-28 19:19:29.296925', photon_index_error2='0.52', photon_index2='1.98', ts='8.45', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='0.97', time_epoch_completed='1632881969.3', return_code='0', job_id='446606', GAL2='0.99', EG2='0.96', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='2.79e-08', ts2='8.69', photon_index='1.72' WHERE bin_id='63' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:19:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 446606: <4FGL_J2243.9+2021_daily_bin63> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin63> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 19:05:31 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:05:32 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:05:32 2021
Terminated at Tue Sep 28 19:19:30 2021
Results reported at Tue Sep 28 19:19:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin63 340.99 20.3565 255657601 255916801 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 :                                   753.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             312.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            839 sec.

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

