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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin812
RA = 340.99, Dec = 20.3565
tmin = 449798401, tmax = 450057601
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='449721', job_status='RUN', time_executed='2021-09-28 19:15:46.026784', time_epoch_executed='1632881746.03' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='812'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449721

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449721/ft1_4FGL_J2243.9+2021_daily_bin812.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449721/ft2_4FGL_J2243.9+2021_daily_bin812.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449721/ft1_4FGL_J2243.9+2021_daily_bin812.fits outfile=/scratch/kocevski/449721/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin812.fits ra=340.99 dec=20.3565 rad=12.0 tmin=449798401.0 tmax=450057601.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 4.43
user 4.18
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449721/ft1_filtered_4FGL_J2243.9+2021_daily_bin812.fits evtable="EVENTS" scfile=/scratch/kocevski/449721/ft2_4FGL_J2243.9+2021_daily_bin812.fits sctable="SC_DATA" expcube=/scratch/kocevski/449721/ltcube_449798401_450057601_4FGL_J2243.9+2021_daily_bin812.fits outfile=/scratch/kocevski/449721/expmap_449798401_450057601_4FGL_J2243.9+2021_daily_bin812.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/449721/ltcube_449798401_450057601_4FGL_J2243.9+2021_daily_bin812.fits
.....................!
real 191.40
user 185.33
sys 5.21

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/449721/ft1_filtered_4FGL_J2243.9+2021_daily_bin812.fits scfile=/scratch/kocevski/449721/ft2_4FGL_J2243.9+2021_daily_bin812.fits outfile=/scratch/kocevski/449721/cmap_449798401_450057601_4FGL_J2243.9+2021_daily_bin812.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449721/ft1_filtered_4FGL_J2243.9+2021_daily_bin812.fits scfile=/scratch/kocevski/449721/ft2_4FGL_J2243.9+2021_daily_bin812.fits outfile=/scratch/kocevski/449721/cmap_HighResolution_449798401_450057601_4FGL_J2243.9+2021_daily_bin812.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14179E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10315E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.647       1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4195       1.0000         .10000E-03   10000.    
     6 'Prefactor '    47.486       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.8820       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10529E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9321       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .49827E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8570       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.6725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.2689       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.849       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    45.017       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2225       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87812       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=   7612.447     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2918 TOTAL
                     EDM=   .12E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.934       -.87256E-06** at limit **
   2  norm          .10000E-03    .45396        .15747E-06** at limit **
   3  Prefactor     16.645        19.018       -.63347E-06   -.81166E-05
   4  norm          .10000E-03    2.7500        .30350E-10** at limit **
   5  Prefactor     1.4174        34.884        .84047E-05    .67243E-05
   6  Prefactor     47.194        99.390        .13978E-04   -.30134E-06
   7  Prefactor     .10000E-03    5.4860       -.54688E-07** at limit **
   8  Prefactor     2.0106        .32696       -.13119E-07    .30810E-03
   9  Prefactor     .10000E-03    7.4853        .12972E-06** at limit **
  10  norm          4.8820        1.6031       -.89354E-07   -.51251E-04
  11  Prefactor     .10000E-03    26.531        .27473E-06** at limit **
  12  norm          1.9321        1.6968       -.41511E-08   -.77004E-05
  13  Prefactor     .10000E-03    99.985        .13561E-05** at limit **
  14  Prefactor     3.8552        9.7101        .35972E-07   -.98891E-06
  15  Prefactor     .10000E-03    6.2078       -.13411E-06** at limit **
  16  Prefactor     1.6726        .25529        .67612E-09   -.10673E-03
  17  Prefactor     4.2706        8.1930        .56418E-06    .38665E-05
  18  Prefactor     .10000E-03    1.7445       -.28063E-08** at limit **
  19  Prefactor     .10000E-03    8.6266       -.24799E-06** at limit **
  20  Prefactor     .10000E-03    11.279        .10278E-07** at limit **
  21  Prefactor     22.854        24.004       -.11083E-06    .17978E-06
  22  Prefactor     .10000E-03    3.7463        .94704E-07** at limit **
  23  Prefactor     45.041        23.672       -.35702E-06    .50950E-06
  24  Normalizat    1.2220        .24551        .20615E-06    .13334E-04
  25  Prefactor     .87835        .12692       -.26124E-06    .47405E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.6449
  norm       = 0.0001
  Prefactor  = 1.41741
  Prefactor  = 47.194
  Prefactor  = 0.0001
  Prefactor  = 2.0106
  Prefactor  = 0.0001
  norm       = 4.88197
  Prefactor  = 0.0001
  norm       = 1.93214
  Prefactor  = 0.0001
  Prefactor  = 3.85525
  Prefactor  = 0.0001
  Prefactor  = 1.67263
  Prefactor  = 4.27061
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8544
  Prefactor  = 0.0001
  Prefactor  = 45.0408
  Normalizat = 1.22202
  Prefactor  = 0.87835
 **********
 **   18 **HESSE 
 **********

 FCN=   7612.447     FROM HESSE     STATUS=OK           429 CALLS     3347 TOTAL
                     EDM=   .36E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .73543        .11304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.645        19.035        .98164E-04   -1.4892    
   4  norm          .10000E-03    2.7760        .14126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4174        35.124        .18158E-02   -1.5470    
   6  Prefactor     47.194        99.447        .29094E-03   -1.4333    
   7  Prefactor     .10000E-03    5.5003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.0106        .32811        .18736E-04   -1.5424    
   9  Prefactor     .10000E-03    7.6004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.8820        1.6027        .60547E-04   -1.5266    
  11  Prefactor     .10000E-03    26.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9321        1.7018        .10130E-03   -1.5430    
  13  Prefactor     .10000E-03    101.95        .21159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.8552        9.6687        .20548E-03   -1.5315    
  15  Prefactor     .10000E-03    6.2097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.6726        .25576        .16358E-04   -1.5449    
  17  Prefactor     4.2706        8.1917        .97502E-03   -1.5295    
  18  Prefactor     .10000E-03    1.7467        .11254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.6559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    11.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.854        24.010        .83797E-04   -1.4751    
  22  Prefactor     .10000E-03    3.7696        .16477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     45.041        23.736        .59755E-04   -1.4365    
  24  Normalizat    1.2220        .29004        .35197E-03   -.85925    
  25  Prefactor     .87835        .15037        .21783E-03   -.96902    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60117e-11
Minuit parameter uncertainties:
  1  1.7248e-05
  2  7.8835e-06
  3  19.0416
  4  1.97253e-06
  5  14.1205
  6  99.7998
  7  6.47589e-06
  8  0.328114
  9  8.38017e-06
  10  1.60276
  11  1.68946e-06
  12  1.70182
  13  0.000114041
  14  9.67258
  15  1.28918e-06
  16  0.255765
  17  8.19381
  18  1.81453e-07
  19  2.50696e-06
  20  1.65587e-06
  21  24.0196
  22  4.08105e-06
  23  23.7408
  24  0.290422
  25  0.150445
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.932e+00  1.702e+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.784e-01  1.504e-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.222e+00  2.904e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.50
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 2.49e-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) = 7611.23475864
delta logL = 1.2125356401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7610.99321095
delta logL = 1.45408333036

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65486       1.0000         .10000E-03   10000.    
     2 'alpha     '    .63819       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2294       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88007       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=   7610.993     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      215 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65465        .65157        .11888E-01   -.39257E-03
   2  alpha         .63807        .43900        .41086       -.26612E-04
   3  Normalizat    1.2294        .23467        .79311E-01    .16009E-04
   4  Prefactor     .88008        .12614        .44750E-01    .91165E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.654649
  alpha      = 0.638072
  Normalizat = 1.22943
  Prefactor  = 0.880082
 **********
 **   18 **HESSE 
 **********

 FCN=   7610.993     FROM HESSE     STATUS=OK            35 CALLS      250 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65465        1.0988        .58369E-03   -1.5546    
   2  alpha         .63807        .63658        .19302E-01   -.84019    
   3  Normalizat    1.2294        .27756        .35107E-03   -.85698    
   4  Prefactor     .88008        .14945        .21769E-03   -.96841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79828e-09
Minuit parameter uncertainties:
  1  1.09884
  2  0.653138
  3  0.277892
  4  0.149523
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449721': 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) = 7610.99321092
delta logL = 1.45408336244

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  6.546e-01  1.099e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  6.381e-01  6.531e-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.801e-01  1.495e-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.229e+00  2.779e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.40
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.64 +/- 0.65
Photon Flux (Free Index): 7.01e-09 +/- 7.17e-09
Energy Flux (Free Index): 1.27e-04 +/- 1.43e-04

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/449721/cmap_HighResolution_449798401_450057601_4FGL_J2243.9+2021_daily_bin812.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.27e-04', photon_flux_error='1.92e-08', dlogl='1.45e+00', energy_flux='2.83e-05', photon_flux2='7.01e-09', job_status='DONE', time_completed='2021-09-28 19:27:19.910187', photon_index_error2='0.65', photon_index2='0.64', ts='11.50', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.43e-04', EG='1.22', time_epoch_completed='1632882439.91', return_code='0', job_id='449721', GAL2='0.88', EG2='1.23', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='7.17e-09', ts2='14.40', photon_index='1.72' WHERE bin_id='812' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:27:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 449721: <4FGL_J2243.9+2021_daily_bin812> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin812> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:34 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:36 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:15:36 2021
Terminated at Tue Sep 28 19:27:20 2021
Results reported at Tue Sep 28 19:27:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin812 340.99 20.3565 449798401 450057601 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 :                                   691.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

