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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin829
RA = 340.99, Dec = 20.3565
tmin = 454204801, tmax = 454464001
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='449746', job_status='RUN', time_executed='2021-09-28 19:17:38.007597', time_epoch_executed='1632881858.01' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='829'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/449746

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/449746/ft1_4FGL_J2243.9+2021_daily_bin829.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/449746/ft2_4FGL_J2243.9+2021_daily_bin829.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/449746/ft1_4FGL_J2243.9+2021_daily_bin829.fits outfile=/scratch/kocevski/449746/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin829.fits ra=340.99 dec=20.3565 rad=12.0 tmin=454204801.0 tmax=454464001.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.32
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/449746/ft2_4FGL_J2243.9+2021_daily_bin829.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/449746/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin829.fits evtable="EVENTS" outfile="/scratch/kocevski/449746/ft1_filtered_4FGL_J2243.9+2021_daily_bin829.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/449746/ft1_filtered_4FGL_J2243.9+2021_daily_bin829.fits" evtable="EVENTS" scfile=/scratch/kocevski/449746/ft2_4FGL_J2243.9+2021_daily_bin829.fits sctable="SC_DATA" outfile=/scratch/kocevski/449746/ltcube_454204801_454464001_4FGL_J2243.9+2021_daily_bin829.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/449746/ft2_4FGL_J2243.9+2021_daily_bin829.fits
.....................!
real 11.79
user 11.46
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/449746/ft1_filtered_4FGL_J2243.9+2021_daily_bin829.fits evtable="EVENTS" scfile=/scratch/kocevski/449746/ft2_4FGL_J2243.9+2021_daily_bin829.fits sctable="SC_DATA" expcube=/scratch/kocevski/449746/ltcube_454204801_454464001_4FGL_J2243.9+2021_daily_bin829.fits outfile=/scratch/kocevski/449746/expmap_454204801_454464001_4FGL_J2243.9+2021_daily_bin829.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/449746/ltcube_454204801_454464001_4FGL_J2243.9+2021_daily_bin829.fits
.....................!
real 190.09
user 184.91
sys 4.81

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/449746/ft1_filtered_4FGL_J2243.9+2021_daily_bin829.fits scfile=/scratch/kocevski/449746/ft2_4FGL_J2243.9+2021_daily_bin829.fits outfile=/scratch/kocevski/449746/cmap_454204801_454464001_4FGL_J2243.9+2021_daily_bin829.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/449746/ft1_filtered_4FGL_J2243.9+2021_daily_bin829.fits scfile=/scratch/kocevski/449746/ft2_4FGL_J2243.9+2021_daily_bin829.fits outfile=/scratch/kocevski/449746/cmap_HighResolution_454204801_454464001_4FGL_J2243.9+2021_daily_bin829.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.0708       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    23.022       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .23783E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.2336       1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.134       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27649       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1055       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27381       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9352       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.566       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2692       1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.854       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1409       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .83042       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5160E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8396.714     FROM MIGRAD    STATUS=CONVERGED    134 CALLS     2491 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.679       -.52880E-05** at limit **
   2  norm          1.0705        .73307       -.40982E-08   -.39635E-03
   3  Prefactor     .10000E-03    4.1398        .15979E-05** at limit **
   4  norm          .10000E-03    2.3286        .77730E-06** at limit **
   5  Prefactor     .10000E-03    4.8042        .19830E-05** at limit **
   6  Prefactor     22.955        7.4365       -.54962E-05    .36323E-02
   7  Prefactor     .10000E-03    6.7702        .83970E-05** at limit **
   8  Prefactor     .23781E-01    .14083       -.29773E-06    .62127E-03
   9  Prefactor     4.2325        1.6737       -.21948E-05    .65447E-03
  10  norm          .10000E-03    .53837        .27259E-06** at limit **
  11  Prefactor     34.117        2.8948        .49576E-06   -.16325E-02
  12  norm          1.7016        1.5564       -.20121E-07   -.51259E-04
  13  Prefactor     .10000E-03    15.350        .58022E-05** at limit **
  14  Prefactor     .10000E-03    5.5762       -.56144E-05** at limit **
  15  Prefactor     .10211E-03    1691.5       -.26010E-03** at limit **
  16  Prefactor     2.1060        .24657        .28845E-06    .35115E-02
  17  Prefactor     .17768        143.01        .15419E-04    .11475E-03
  18  Prefactor     3.9348        1.1969        .13160E-05   -.39348E-03
  19  Prefactor     22.358        4.8613       -.15989E-05   -.32558E-02
  20  Prefactor     .10000E-03    8.5740        .80519E-06** at limit **
  21  Prefactor     16.551        4.6782        .12996E-05   -.27006E-02
  22  Prefactor     1.2620        7.0131        .13941E-04    .21381E-03
  23  Prefactor     17.862        16.808        .72649E-05    .59169E-03
  24  Normalizat    1.1409        .23676       -.30787E-05    .58540E-04
  25  Prefactor     .83065        .12560        .17619E-05    .20086E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.07046
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.9554
  Prefactor  = 0.0001
  Prefactor  = 0.0237809
  Prefactor  = 4.23253
  norm       = 0.0001
  Prefactor  = 34.1174
  norm       = 1.7016
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102112
  Prefactor  = 2.10599
  Prefactor  = 0.177682
  Prefactor  = 3.93476
  Prefactor  = 22.3582
  Prefactor  = 0.0001
  Prefactor  = 16.5508
  Prefactor  = 1.26201
  Prefactor  = 17.8616
  Normalizat = 1.14093
  Prefactor  = 0.830647
 **********
 **   18 **HESSE 
 **********

 FCN=   8396.714     FROM HESSE     STATUS=OK           491 CALLS     2982 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.778        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.0705        .74126        .11731E-01   -1.5501    
   3  Prefactor     .10000E-03    4.1365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.3072        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     22.955        61.467        .20870E-02   -1.4749    
   7  Prefactor     .10000E-03    6.7609        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .23781E-01    .88203E-01    .91413E-02   -1.5677    
   9  Prefactor     4.2325        5.5662        .48959E-02   -1.5296    
  10  norm          .10000E-03    .35923        .28611E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     34.117        20.825        .17147E-02   -1.4539    
  12  norm          1.7016        1.5524        .80609E-02   -1.5447    
  13  Prefactor     .10000E-03    15.466        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.5711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10211E-03    9.5143        .15681       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.1060        .25075        .33279E-02   -1.5418    
  17  Prefactor     .17768        6.0075        .10310       -1.5624    
  18  Prefactor     3.9348        6.2460        .50840E-02   -1.5311    
  19  Prefactor     22.358        16.300        .21174E-02   -1.4762    
  20  Prefactor     .10000E-03    8.6080        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.551        22.078        .24601E-02   -1.4894    
  22  Prefactor     1.2620        8.0485        .98765E-02   -1.5483    
  23  Prefactor     17.862        18.603        .23697E-02   -1.4862    
  24  Normalizat    1.1409        .20692        .72821E-01   -.88448    
  25  Prefactor     .83065        .10704        .44112E-01   -.98608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19227e-07
Minuit parameter uncertainties:
  1  3.97983e-05
  2  0.741266
  3  1.54718e-05
  4  6.15479e-06
  5  1.16672e-05
  6  61.6375
  7  2.13976e-05
  8  0.0882034
  9  5.56683
  10  1.55731e-06
  11  20.8299
  12  1.55239
  13  5.82757e-05
  14  4.9353e-05
  15  0.00896614
  16  0.250746
  17  2.06597
  18  6.24701
  19  16.3028
  20  5.7181e-05
  21  22.0889
  22  6.37513
  23  18.6092
  24  0.207063
  25  0.107068
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.702e+00  1.552e+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.306e-01  1.071e-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.141e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.13
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 1.92e-08 +/- 1.75e-08
Energy Flux (Fixed Index): 2.49e-05 +/- 2.27e-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) = 8395.09310362
delta logL = 1.62095851079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8395.08820581
delta logL = 1.62585632656

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2717       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8265       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0541       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85053       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=   8395.088     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      241 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2717        7.8681        .98606E-02    .60908E-03
   2  alpha         2.8264        2.0266        .21943        .11184E-03
   3  Normalizat    1.0541        .67519E-01    .75168E-01    .20357E-04
   4  Prefactor     .85057        .33438E-01    .44371E-01    .42392E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.27171
  alpha      = 2.82641
  Normalizat = 1.0541
  Prefactor  = 0.850565
 **********
 **   18 **HESSE 
 **********

 FCN=   8395.088     FROM HESSE     STATUS=OK            33 CALLS      274 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2717        1.3658        .48970E-04   -1.5482    
   2  alpha         2.8264        .61016        .83353E-02    .13094    
   3  Normalizat    1.0541        .23546        .33267E-03   -.91239    
   4  Prefactor     .85057        .12572        .19867E-03   -.97891    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12998e-11
Minuit parameter uncertainties:
  1  1.36583
  2  0.616492
  3  0.235696
  4  0.125765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/449746': 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) = 8395.08820566
delta logL = 1.62585647421

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.272e+00  1.366e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  2.826e+00  6.165e-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.506e-01  1.258e-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.054e+00  2.357e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.45
Ra Dec: 340.990 20.357
Photon Index (Free Index): 2.83 +/- 0.62
Photon Flux (Free Index): 1.02e-07 +/- 6.04e-08
Energy Flux (Free Index): 2.52e-05 +/- 1.27e-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/449746/cmap_HighResolution_454204801_454464001_4FGL_J2243.9+2021_daily_bin829.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.92e-08', energy_flux2='2.52e-05', photon_flux_error='1.75e-08', dlogl='1.63e+00', energy_flux='2.49e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-28 19:29:13.450032', photon_index_error2='0.62', photon_index2='2.83', ts='4.13', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.27e-05', EG='1.14', time_epoch_completed='1632882553.45', return_code='0', job_id='449746', GAL2='0.85', EG2='1.05', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='6.04e-08', ts2='7.45', photon_index='1.72' WHERE bin_id='829' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:29:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 449746: <4FGL_J2243.9+2021_daily_bin829> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin829> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 28 19:15:35 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:15:38 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:38 2021
Terminated at Tue Sep 28 19:29:14 2021
Results reported at Tue Sep 28 19:29:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin829 340.99 20.3565 454204801 454464001 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 :                                   692.17 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             287.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   815 sec.
    Turnaround time :                            819 sec.

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

