/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 18 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin389
RA = 340.99, Dec = 20.3565
tmin = 340156801, tmax = 340416001
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='448109', job_status='RUN', time_executed='2021-09-28 19:11:09.622197', time_epoch_executed='1632881469.62' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='389'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448109

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448109/ft1_4FGL_J2243.9+2021_daily_bin389.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448109/ft2_4FGL_J2243.9+2021_daily_bin389.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448109/ft1_4FGL_J2243.9+2021_daily_bin389.fits outfile=/scratch/kocevski/448109/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin389.fits ra=340.99 dec=20.3565 rad=12.0 tmin=340156801.0 tmax=340416001.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.32
user 3.08
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448109/ft1_filtered_4FGL_J2243.9+2021_daily_bin389.fits evtable="EVENTS" scfile=/scratch/kocevski/448109/ft2_4FGL_J2243.9+2021_daily_bin389.fits sctable="SC_DATA" expcube=/scratch/kocevski/448109/ltcube_340156801_340416001_4FGL_J2243.9+2021_daily_bin389.fits outfile=/scratch/kocevski/448109/expmap_340156801_340416001_4FGL_J2243.9+2021_daily_bin389.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/448109/ltcube_340156801_340416001_4FGL_J2243.9+2021_daily_bin389.fits
.....................!
real 192.21
user 186.27
sys 5.41

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/448109/ft1_filtered_4FGL_J2243.9+2021_daily_bin389.fits scfile=/scratch/kocevski/448109/ft2_4FGL_J2243.9+2021_daily_bin389.fits outfile=/scratch/kocevski/448109/cmap_340156801_340416001_4FGL_J2243.9+2021_daily_bin389.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/448109/ft1_filtered_4FGL_J2243.9+2021_daily_bin389.fits scfile=/scratch/kocevski/448109/ft2_4FGL_J2243.9+2021_daily_bin389.fits outfile=/scratch/kocevski/448109/cmap_HighResolution_340156801_340416001_4FGL_J2243.9+2021_daily_bin389.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.35
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.7302       1.0000         .10000E-03   10000.    
     2 'norm      '    1.3996       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .72646       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .88064       1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.984       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .98071E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .16934       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3767       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1092       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.804       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .88647E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2548       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3481       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77776       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=   7466.270     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2945 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.7268        31.055        .11879E-05    .15698E-04
   2  norm          1.3995        .76546        .10824E-07    .12300E-04
   3  Prefactor     .10000E-03    3.1074       -.12028E-07** at limit **
   4  norm          .10000E-03    2.9854       -.42003E-07** at limit **
   5  Prefactor     .10000E-03    10.086       -.21914E-06** at limit **
   6  Prefactor     .10000E-03    56.212       -.70071E-05** at limit **
   7  Prefactor     .10000E-03    13.037        .59983E-06** at limit **
   8  Prefactor     .72646        .20211        .86663E-08    .36419E-03
   9  Prefactor     .10000E-03    1.7867       -.65261E-09** at limit **
  10  norm          .10000E-03    .30564       -.97354E-08** at limit **
  11  Prefactor     .10000E-03    5.7536       -.14841E-07** at limit **
  12  norm          .88127        .88657       -.53667E-07    .20845E-03
  13  Prefactor     16.986        20.118        .14699E-06    .28223E-04
  14  Prefactor     .10020E-03    13.095       -.47553E-05** at limit **
  15  Prefactor     .10000E-03    16.331       -.16139E-05** at limit **
  16  Prefactor     .16936        .11337        .18793E-07    .18267E-02
  17  Prefactor     4.3866        9.7344        .38380E-05    .72637E-03
  18  Prefactor     .10000E-03    1.5293        .29219E-07** at limit **
  19  Prefactor     2.1087        8.3723        .65304E-06    .66535E-04
  20  Prefactor     21.776        22.776        .27358E-06    .10634E-03
  21  Prefactor     .10025E-03    22.360       -.52214E-05** at limit **
  22  Prefactor     5.2582        6.2332       -.11085E-05   -.22939E-03
  23  Prefactor     .10000E-03    19.255        .16009E-05** at limit **
  24  Normalizat    1.3481        .20238       -.78375E-06    .20196E-03
  25  Prefactor     .77781        .10638        .52404E-07    .30766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.72682
  norm       = 1.3995
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.726456
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.881267
  Prefactor  = 16.9857
  Prefactor  = 0.000100204
  Prefactor  = 0.0001
  Prefactor  = 0.169357
  Prefactor  = 4.38659
  Prefactor  = 0.0001
  Prefactor  = 2.10875
  Prefactor  = 21.7762
  Prefactor  = 0.000100251
  Prefactor  = 5.25822
  Prefactor  = 0.000100001
  Normalizat = 1.34813
  Prefactor  = 0.77781
 **********
 **   18 **HESSE 
 **********

 FCN=   7466.270     FROM HESSE     STATUS=OK           429 CALLS     3374 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.7268        31.083        .13566E-03   -1.5117    
   2  norm          1.3995        .75917        .54276E-04   -1.5471    
   3  Prefactor     .10000E-03    3.1097        .14876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0916        .29150E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    56.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .72646        .20189        .19776E-04   -1.5538    
   9  Prefactor     .10000E-03    1.7871        .11280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .31168        .46601E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.7581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .88127        .91322        .79157E-03   -1.5520    
  13  Prefactor     16.986        20.110        .97184E-04   -1.4883    
  14  Prefactor     .10020E-03    47.001        .42527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .16936        .11076        .22628E-04   -1.5626    
  17  Prefactor     4.3866        10.365        .96260E-03   -1.5289    
  18  Prefactor     .10000E-03    1.5310        .10435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1087        8.3543        .28408E-03   -1.5418    
  20  Prefactor     21.776        22.715        .85779E-04   -1.4774    
  21  Prefactor     .10025E-03    99.040        .63688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2582        6.2643        .17534E-03   -1.5249    
  23  Prefactor     .10000E-03    19.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3481        .23626        .28268E-03   -.82141    
  25  Prefactor     .77781        .12581        .19531E-03   -1.0055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93557e-09
Minuit parameter uncertainties:
  1  31.1408
  2  0.759174
  3  5.34399e-07
  4  1.93046e-06
  5  9.3194e-06
  6  0.000776186
  7  1.11742e-05
  8  0.201892
  9  3.75742e-08
  10  3.01475e-08
  11  6.54575e-07
  12  0.913234
  13  20.1185
  14  0.00620104
  15  8.90502e-05
  16  0.110758
  17  10.3691
  18  2.3693e-06
  19  8.35891
  20  22.7243
  21  0.00999299
  22  6.26512
  23  0.00024127
  24  0.236454
  25  0.125853
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  8.813e-01  9.132e-01  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:  7.778e-01  1.259e-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.348e+00  2.365e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.15
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 9.95e-09 +/- 1.03e-08
Energy Flux (Fixed Index): 1.29e-05 +/- 1.34e-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) = 7466.19973
delta logL = 0.06997376255

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7466.19181395
delta logL = 0.0778898064691

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .76478       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3292       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3523       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77712       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=   7466.192     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .76497        .81823        .12308E-01   -.49619E-03
   2  alpha         1.3293        .73928        .49172       -.38771E-04
   3  Normalizat    1.3520        .19439        .63829E-01    .85172E-05
   4  Prefactor     .77723        .10547        .43419E-01    .11770E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.764967
  alpha      = 1.32927
  Normalizat = 1.35204
  Prefactor  = 0.777227
 **********
 **   18 **HESSE 
 **********

 FCN=   7466.192     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .76497        .88706        .73929E-03   -1.5533    
   2  alpha         1.3293        .86028        .26830E-01   -.48736    
   3  Normalizat    1.3520        .22941        .28233E-03   -.82026    
   4  Prefactor     .77723        .12483        .19538E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55612e-10
Minuit parameter uncertainties:
  1  0.887075
  2  0.883666
  3  0.22958
  4  0.124873
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448109': 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) = 7466.1918133
delta logL = 0.0778904623794

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  7.650e-01  8.871e-01  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  1.329e+00  8.837e-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:  7.772e-01  1.249e-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.352e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.31
Ra Dec: 340.990 20.357
Photon Index (Free Index): 1.33 +/- 0.88
Photon Flux (Free Index): 6.07e-09 +/- 8.63e-09
Energy Flux (Free Index): 2.20e-05 +/- 3.93e-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/448109/cmap_HighResolution_340156801_340416001_4FGL_J2243.9+2021_daily_bin389.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.95e-09', energy_flux2='2.20e-05', photon_flux_error='1.03e-08', dlogl='7.79e-02', energy_flux='1.29e-05', photon_flux2='6.07e-09', job_status='DONE', time_completed='2021-09-28 19:22:40.249737', photon_index_error2='0.88', photon_index2='1.33', ts='4.15', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.93e-05', EG='1.35', time_epoch_completed='1632882160.25', return_code='0', job_id='448109', GAL2='0.78', EG2='1.35', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='8.63e-09', ts2='4.31', photon_index='1.72' WHERE bin_id='389' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:22:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 448109: <4FGL_J2243.9+2021_daily_bin389> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin389> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:36 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:37 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:10:37 2021
Terminated at Tue Sep 28 19:22:40 2021
Results reported at Tue Sep 28 19:22:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin389 340.99 20.3565 340156801 340416001 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 :                                   688.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             339.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            724 sec.

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

