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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1189
RA = 340.99, Dec = 20.3565
tmin = 547516801, tmax = 547776001
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='452638', job_status='RUN', time_executed='2021-09-28 19:25:27.877653', time_epoch_executed='1632882327.88' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/452638

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/452638/ft1_4FGL_J2243.9+2021_daily_bin1189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/452638/ft2_4FGL_J2243.9+2021_daily_bin1189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/452638/ft1_4FGL_J2243.9+2021_daily_bin1189.fits outfile=/scratch/kocevski/452638/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1189.fits ra=340.99 dec=20.3565 rad=12.0 tmin=547516801.0 tmax=547776001.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.54
user 3.30
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/452638/ft1_filtered_4FGL_J2243.9+2021_daily_bin1189.fits" evtable="EVENTS" scfile=/scratch/kocevski/452638/ft2_4FGL_J2243.9+2021_daily_bin1189.fits sctable="SC_DATA" outfile=/scratch/kocevski/452638/ltcube_547516801_547776001_4FGL_J2243.9+2021_daily_bin1189.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/452638/ft2_4FGL_J2243.9+2021_daily_bin1189.fits
.....................!
real 11.78
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/452638/ft1_filtered_4FGL_J2243.9+2021_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/452638/ft2_4FGL_J2243.9+2021_daily_bin1189.fits sctable="SC_DATA" expcube=/scratch/kocevski/452638/ltcube_547516801_547776001_4FGL_J2243.9+2021_daily_bin1189.fits outfile=/scratch/kocevski/452638/expmap_547516801_547776001_4FGL_J2243.9+2021_daily_bin1189.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/452638/ltcube_547516801_547776001_4FGL_J2243.9+2021_daily_bin1189.fits
.....................!
real 190.16
user 185.43
sys 4.33

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/452638/ft1_filtered_4FGL_J2243.9+2021_daily_bin1189.fits scfile=/scratch/kocevski/452638/ft2_4FGL_J2243.9+2021_daily_bin1189.fits outfile=/scratch/kocevski/452638/cmap_547516801_547776001_4FGL_J2243.9+2021_daily_bin1189.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/452638/ft1_filtered_4FGL_J2243.9+2021_daily_bin1189.fits scfile=/scratch/kocevski/452638/ft2_4FGL_J2243.9+2021_daily_bin1189.fits outfile=/scratch/kocevski/452638/cmap_HighResolution_547516801_547776001_4FGL_J2243.9+2021_daily_bin1189.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/452638/ft1_filtered_4FGL_J2243.9+2021_daily_bin1189.fits evtable="EVENTS" scfile=/scratch/kocevski/452638/ft2_4FGL_J2243.9+2021_daily_bin1189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/452638/Model_4FGL_J2243.9+2021_daily_bin1189.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/452638/ft1_filtered_4FGL_J2243.9+2021_daily_bin1189.fits.....................!
real 98.23
user 96.76
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.372       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1700       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11347E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.8080       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.091       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.452       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .79308       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8635       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5739       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.462       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9501       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .37455       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1977       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .54060       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.0667       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3594       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82849       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=   9406.812     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2926 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.362        34.369       -.46207E-05   -.41051E-03
   2  norm          1.1699        1.0641        .63097E-07   -.31660E-03
   3  Prefactor     .10000E-03    27.510       -.78634E-06** at limit **
   4  norm          5.8075        4.2892        .41274E-06   -.10392E-02
   5  Prefactor     17.085        21.278       -.12224E-05   -.15605E-03
   6  Prefactor     .10000E-03    50.405        .42746E-06** at limit **
   7  Prefactor     11.446        13.466       -.25262E-06   -.74110E-04
   8  Prefactor     .79307        .28563        .25476E-07   -.18200E-03
   9  Prefactor     6.8635        10.566        .36896E-07   -.23117E-04
  10  norm          1.5737        .97107        .87469E-08   -.29430E-03
  11  Prefactor     14.460        14.397        .85279E-07    .54191E-05
  12  norm          1.9536        1.5508       -.23544E-08    .10063E-03
  13  Prefactor     .10000E-03    9.0365       -.14459E-05** at limit **
  14  Prefactor     .22189        8.5351       -.37615E-06   -.67217E-05
  15  Prefactor     .10000E-03    8.5950        .44442E-06** at limit **
  16  Prefactor     1.1978        .22370       -.65449E-08    .20281E-04
  17  Prefactor     .57143        5.5099        .16184E-05   -.65597E-03
  18  Prefactor     .10000E-03    4.5698       -.62310E-08** at limit **
  19  Prefactor     .10000E-03    9.9454       -.24556E-06** at limit **
  20  Prefactor     .10000E-03    9.6039        .16345E-05** at limit **
  21  Prefactor     .10000E-03    5.8504        .17886E-07** at limit **
  22  Prefactor     8.0623        8.1026        .11085E-05   -.94479E-03
  23  Prefactor     .10000E-03    24.395        .33604E-06** at limit **
  24  Normalizat    1.3598        .22511       -.30757E-06   -.80758E-04
  25  Prefactor     .82835        .11024        .41697E-07   -.13360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.3623
  norm       = 1.16987
  Prefactor  = 0.0001
  norm       = 5.80755
  Prefactor  = 17.0855
  Prefactor  = 0.0001
  Prefactor  = 11.4461
  Prefactor  = 0.793069
  Prefactor  = 6.86355
  norm       = 1.57373
  Prefactor  = 14.4605
  norm       = 1.95363
  Prefactor  = 0.000100001
  Prefactor  = 0.221889
  Prefactor  = 0.0001
  Prefactor  = 1.19779
  Prefactor  = 0.571428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.0623
  Prefactor  = 0.0001
  Normalizat = 1.35976
  Prefactor  = 0.82835
 **********
 **   18 **HESSE 
 **********

 FCN=   9406.812     FROM HESSE     STATUS=OK           441 CALLS     3367 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.362        36.263        .67382E-04   -1.4518    
   2  norm          1.1699        1.0453        .90881E-04   -1.5492    
   3  Prefactor     .10000E-03    28.488        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.8075        4.5648        .83325E-03   -1.5226    
   5  Prefactor     17.085        21.511        .96882E-04   -1.4881    
   6  Prefactor     .10000E-03    50.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.446        13.582        .11838E-03   -1.5031    
   8  Prefactor     .79307        .28570        .28337E-04   -1.5530    
   9  Prefactor     6.8635        10.596        .15314E-03   -1.5184    
  10  norm          1.5737        .96525        .69774E-04   -1.5457    
  11  Prefactor     14.460        14.374        .10532E-03   -1.4947    
  12  norm          1.9536        1.5597        .10148E-03   -1.5428    
  13  Prefactor     .10000E-03    9.1170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22189        14.177        .77427E-01   -1.5614    
  15  Prefactor     .10000E-03    8.6097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.1978        .22388        .18906E-04   -1.5489    
  17  Prefactor     .57143        17.113        .41403E-02   -1.5557    
  18  Prefactor     .10000E-03    4.6041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    9.9868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.7031        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.8531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.0623        10.003        .70583E-03   -1.5140    
  23  Prefactor     .10000E-03    24.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3598        .27461        .33452E-03   -.81800    
  25  Prefactor     .82835        .13274        .21319E-03   -.98692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.13005e-09
Minuit parameter uncertainties:
  1  36.2855
  2  1.04527
  3  0.000102808
  4  4.56508
  5  21.5207
  6  9.10552e-05
  7  13.5854
  8  0.285703
  9  10.5988
  10  0.965255
  11  14.3774
  12  1.55974
  13  0.000141048
  14  3.54735
  15  4.18148e-05
  16  0.223879
  17  6.25563
  18  1.56598e-06
  19  2.6698e-05
  20  0.000156483
  21  1.32613e-07
  22  10.0054
  23  5.35898e-05
  24  0.274907
  25  0.132796
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.954e+00  1.560e+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.283e-01  1.328e-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.360e+00  2.749e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.27
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.21e-08 +/- 1.76e-08
Energy Flux (Fixed Index): 2.86e-05 +/- 2.28e-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) = 9405.96645144
delta logL = 0.845070039446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9405.96032862
delta logL = 0.851192852277

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4944       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6035       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2975       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84395       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=   9405.960     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      269 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4943        13.634        .87634E-02    .26054E-02
   2  alpha         2.6035        3.7551        .22924        .82817E-04
   3  Normalizat    1.2975        .83237E-01    .77006E-01   -.24880E-03
   4  Prefactor     .84403        .35695E-01    .44287E-01   -.45602E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.49429
  alpha      = 2.60355
  Normalizat = 1.29748
  Prefactor  = 0.84403
 **********
 **   18 **HESSE 
 **********

 FCN=   9405.960     FROM HESSE     STATUS=OK            31 CALLS      300 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4943        1.5269        .65674E-04   -1.5463    
   2  alpha         2.6035        .69755        .11854E-01    .41431E-01
   3  Normalizat    1.2975        .26278        .34083E-03   -.83642    
   4  Prefactor     .84403        .13237        .21123E-03   -.98125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02417e-08
Minuit parameter uncertainties:
  1  1.52689
  2  0.706955
  3  0.263047
  4  0.132421
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/452638': 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) = 9405.96032816
delta logL = 0.851193318676

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.494e+00  1.527e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.604e+00  7.070e-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.440e-01  1.324e-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.297e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.97
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.60 +/- 0.71
Photon Flux (Free Index): 7.58e-08 +/- 6.13e-08
Energy Flux (Free Index): 2.25e-05 +/- 1.31e-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/452638/cmap_HighResolution_547516801_547776001_4FGL_J2243.9+2021_daily_bin1189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.21e-08', energy_flux2='2.25e-05', photon_flux_error='1.76e-08', dlogl='8.51e-01', energy_flux='2.86e-05', photon_flux2='7.58e-08', job_status='DONE', time_completed='2021-09-28 19:38:12.666459', photon_index_error2='0.71', photon_index2='2.60', ts='5.27', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='1.36', time_epoch_completed='1632883092.67', return_code='0', job_id='452638', GAL2='0.84', EG2='1.30', return_code2='0', energy_flux_error='2.28e-05', photon_flux_error2='6.13e-08', ts2='6.97', photon_index='1.72' WHERE bin_id='1189' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:38:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 452638: <4FGL_J2243.9+2021_daily_bin1189> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1189> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:25:15 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:25:16 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:25:16 2021
Terminated at Tue Sep 28 19:38:13 2021
Results reported at Tue Sep 28 19:38:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1189 340.99 20.3565 547516801 547776001 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 :                                   761.19 sec.
    Max Memory :                                 1226 MB
    Average Memory :                             313.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            778 sec.

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

