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


Performing analysis on: 4FGL_J2243.9+2021_daily_bin1448
RA = 340.99, Dec = 20.3565
tmin = 614649601, tmax = 614908801
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='453028', job_status='RUN', time_executed='2021-09-28 19:26:02.862070', time_epoch_executed='1632882362.86' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='1448'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/453028

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/453028/ft1_4FGL_J2243.9+2021_daily_bin1448.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/453028/ft2_4FGL_J2243.9+2021_daily_bin1448.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/453028/ft1_4FGL_J2243.9+2021_daily_bin1448.fits outfile=/scratch/kocevski/453028/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1448.fits ra=340.99 dec=20.3565 rad=12.0 tmin=614649601.0 tmax=614908801.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.68
user 3.45
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/453028/ft2_4FGL_J2243.9+2021_daily_bin1448.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/453028/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin1448.fits evtable="EVENTS" outfile="/scratch/kocevski/453028/ft1_filtered_4FGL_J2243.9+2021_daily_bin1448.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.35
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/453028/ft1_filtered_4FGL_J2243.9+2021_daily_bin1448.fits evtable="EVENTS" scfile=/scratch/kocevski/453028/ft2_4FGL_J2243.9+2021_daily_bin1448.fits sctable="SC_DATA" expcube=/scratch/kocevski/453028/ltcube_614649601_614908801_4FGL_J2243.9+2021_daily_bin1448.fits outfile=/scratch/kocevski/453028/expmap_614649601_614908801_4FGL_J2243.9+2021_daily_bin1448.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/453028/ltcube_614649601_614908801_4FGL_J2243.9+2021_daily_bin1448.fits
.....................!
real 190.88
user 185.26
sys 5.28

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/453028/ft1_filtered_4FGL_J2243.9+2021_daily_bin1448.fits scfile=/scratch/kocevski/453028/ft2_4FGL_J2243.9+2021_daily_bin1448.fits outfile=/scratch/kocevski/453028/cmap_614649601_614908801_4FGL_J2243.9+2021_daily_bin1448.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=340.99 yref=20.3565 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/453028/ft1_filtered_4FGL_J2243.9+2021_daily_bin1448.fits scfile=/scratch/kocevski/453028/ft2_4FGL_J2243.9+2021_daily_bin1448.fits outfile=/scratch/kocevski/453028/cmap_HighResolution_614649601_614908801_4FGL_J2243.9+2021_daily_bin1448.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    54.800       1.0000         .10000E-03   10000.    
     2 'norm      '    .65784       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.0184       1.0000         .10000E-03   10000.    
     4 'norm      '    2.0128       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21169       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.394       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .86435E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.9040       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.4588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16399       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.5009       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.0426       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.527       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    29.656       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0029       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0374       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=   7759.361     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2948 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     54.750        53.556        .54217E-05    .69021E-04
   2  norm          .65713        .89055       -.12313E-06   -.89809E-03
   3  Prefactor     8.0174        8.8564        .35766E-07   -.15853E-04
   4  norm          2.0124        3.9902        .47915E-05   -.16148E-03
   5  Prefactor     .11619        8.4995       -.19674E-06    .17892E-04
   6  Prefactor     .10000E-03    30.968        .31530E-07** at limit **
   7  Prefactor     20.394        12.720       -.58823E-07   -.23413E-04
   8  Prefactor     .86545E-01    .15434        .45295E-07   -.40724E-04
   9  Prefactor     .10000E-03    4.6808        .62084E-07** at limit **
  10  norm          .10000E-03    .31536        .54312E-07** at limit **
  11  Prefactor     .10000E-03    6.3868        .57749E-07** at limit **
  12  norm          1.9038        1.3800        .33758E-07    .29882E-04
  13  Prefactor     .10000E-03    10.789        .72226E-07** at limit **
  14  Prefactor     2.2182        6.4644        .18812E-06   -.24645E-04
  15  Prefactor     6.4578        12.866        .87324E-06   -.19783E-04
  16  Prefactor     .16398        .10149        .86867E-08    .79690E-04
  17  Prefactor     .10000E-03    2.8153        .59814E-07** at limit **
  18  Prefactor     1.4998        5.5244        .83573E-06    .10304E-04
  19  Prefactor     4.0411        11.981        .33599E-05   -.31780E-04
  20  Prefactor     11.522        17.781        .86406E-06   -.12516E-05
  21  Prefactor     .10000E-03    21.885        .18087E-06** at limit **
  22  Prefactor     .10000E-03    3.1143        .60151E-07** at limit **
  23  Prefactor     29.650        18.300        .33590E-06   -.10575E-04
  24  Normalizat    1.0028        .21677       -.27738E-05   -.14044E-03
  25  Prefactor     1.0376        .11566        .23390E-06   -.73255E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 54.7497
  norm       = 0.657132
  Prefactor  = 8.01735
  norm       = 2.01236
  Prefactor  = 0.11619
  Prefactor  = 0.0001
  Prefactor  = 20.3944
  Prefactor  = 0.0865447
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90384
  Prefactor  = 0.0001
  Prefactor  = 2.21816
  Prefactor  = 6.45784
  Prefactor  = 0.163983
  Prefactor  = 0.0001
  Prefactor  = 1.49985
  Prefactor  = 4.04109
  Prefactor  = 11.522
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.6502
  Normalizat = 1.00275
  Prefactor  = 1.03763
 **********
 **   18 **HESSE 
 **********

 FCN=   7759.361     FROM HESSE     STATUS=OK           445 CALLS     3393 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     54.750        53.618        .54185E-04   -1.4227    
   2  norm          .65713        .80829        .92958E-03   -1.5546    
   3  Prefactor     8.0174        8.8544        .14159E-03   -1.5142    
   4  norm          2.0124        4.0041        .12041E-02   -1.5424    
   5  Prefactor     .11619        11.964        .76338E-01   -1.5640    
   6  Prefactor     .10000E-03    30.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     20.394        12.771        .88691E-04   -1.4804    
   8  Prefactor     .86545E-01    .13764        .42067E-03   -1.5649    
   9  Prefactor     .10000E-03    4.7084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .32256        .48269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3941        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.9038        1.3798        .85201E-04   -1.5432    
  13  Prefactor     .10000E-03    10.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.2182        6.4346        .27610E-03   -1.5410    
  15  Prefactor     6.4578        12.836        .78961E-03   -1.5200    
  16  Prefactor     .16398        .99521E-01    .20948E-04   -1.5627    
  17  Prefactor     .10000E-03    2.8180        .14434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4998        5.5065        .34952E-03   -1.5463    
  19  Prefactor     4.0411        11.959        .10028E-02   -1.5306    
  20  Prefactor     11.522        17.776        .11800E-03   -1.5029    
  21  Prefactor     .10000E-03    22.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.1750        .15171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     29.650        18.306        .73572E-04   -1.4618    
  24  Normalizat    1.0028        .25363        .33258E-03   -.92938    
  25  Prefactor     1.0376        .13736        .18332E-03   -.91485    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.87722e-09
Minuit parameter uncertainties:
  1  53.665
  2  0.808306
  3  8.85586
  4  4.00467
  5  2.35754
  6  1.72215e-05
  7  12.7724
  8  0.137642
  9  1.15978e-05
  10  2.3658e-06
  11  1.00546e-05
  12  1.37984
  13  1.11368e-05
  14  6.43664
  15  12.8411
  16  0.0995212
  17  5.15856e-06
  18  5.50835
  19  11.9663
  20  17.7844
  21  2.59219e-05
  22  7.92125e-06
  23  18.309
  24  0.253934
  25  0.13741
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.904e+00  1.380e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.716e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.038e+00  1.374e-01  0.000e+00  1.000e+01 ( 1.000e+00)
514        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
515        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
512   Normalization:  1.003e+00  2.539e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.26
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.15e-08 +/- 1.56e-08
Energy Flux (Fixed Index): 2.79e-05 +/- 2.02e-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) = 7756.75552842
delta logL = 2.60566471804

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7756.5423266
delta logL = 2.8188665354

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .75951E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    .21702E-06   1.0000          .0000       5.0000    
     3 'Normalizat'    1.0018       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0471       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=   7756.542     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      243 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76063E-01    .90767E-01    .40381E-02   -.19322E-02
   2  alpha         .54567E-12    .43885        .46421    ** at limit **
   3  Normalizat    1.0018        .20399        .75218E-01    .10222E-03
   4  Prefactor     1.0470        .11483        .40085E-01    .15541E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0760631
  alpha      = 5.45675e-13
  Normalizat = 1.00179
  Prefactor  = 1.047
 **********
 **   18 **HESSE 
 **********

 FCN=   7756.542     FROM HESSE     STATUS=OK            31 CALLS      274 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76063E-01    .76362E-01    .21558E-03   -1.5653    
   2  alpha         .54567E-12    .48913        .39377E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0018        .24048        .33284E-03   -.92970    
   4  Prefactor     1.0470        .13562        .18271E-03   -.91179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29856e-11
Minuit parameter uncertainties:
  1  0.0763619
  2  1.05087e-06
  3  0.240738
  4  0.135662
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/453028': 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) = 7756.54232488
delta logL = 2.81886826243

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  7.606e-02  7.636e-02  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  5.457e-13  1.051e-06  0.000e+00  5.000e+00 ( 1.000e+00)
290         beta:  8.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
291           Eb:  1.517e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
513    Prefactor:  1.047e+00  1.357e-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.002e+00  2.407e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.90
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 3.30e-09 +/- 3.31e-09
Energy Flux (Free Index): 1.27e-04 +/- 1.27e-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/453028/cmap_HighResolution_614649601_614908801_4FGL_J2243.9+2021_daily_bin1448.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.15e-08', energy_flux2='1.27e-04', photon_flux_error='1.56e-08', dlogl='2.82e+00', energy_flux='2.79e-05', photon_flux2='3.30e-09', job_status='DONE', time_completed='2021-09-28 19:37:44.422128', photon_index_error2='0.00', photon_index2='0.00', ts='14.26', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.27e-04', EG='1.00', time_epoch_completed='1632883064.42', return_code='0', job_id='453028', GAL2='1.05', EG2='1.00', return_code2='0', energy_flux_error='2.02e-05', photon_flux_error2='3.31e-09', ts2='19.90', photon_index='1.72' WHERE bin_id='1448' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:37:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0304>
Subject: Job 453028: <4FGL_J2243.9+2021_daily_bin1448> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin1448> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:25:52 2021
Job was executed on host(s) <bullet0304>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:25:54 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:54 2021
Terminated at Tue Sep 28 19:37:45 2021
Results reported at Tue Sep 28 19:37:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin1448 340.99 20.3565 614649601 614908801 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 :                                   686.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             326.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            713 sec.

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

