/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 189 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 = 7429
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2243.9+2021_daily_bin399
RA = 340.99, Dec = 20.3565
tmin = 342748801, tmax = 343008001
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='448125', job_status='RUN', time_executed='2021-09-28 19:13:57.099189', time_epoch_executed='1632881637.1' WHERE source_name='4FGL J2243.9+2021' and cadence='daily' and bin_id='399'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/448125

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/448125/ft1_4FGL_J2243.9+2021_daily_bin399.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/448125/ft2_4FGL_J2243.9+2021_daily_bin399.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/448125/ft1_4FGL_J2243.9+2021_daily_bin399.fits outfile=/scratch/kocevski/448125/ft1_filteredMKT_4FGL_J2243.9+2021_daily_bin399.fits ra=340.99 dec=20.3565 rad=12.0 tmin=342748801.0 tmax=343008001.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.67
user 3.45
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/448125/ft1_filtered_4FGL_J2243.9+2021_daily_bin399.fits" evtable="EVENTS" scfile=/scratch/kocevski/448125/ft2_4FGL_J2243.9+2021_daily_bin399.fits sctable="SC_DATA" outfile=/scratch/kocevski/448125/ltcube_342748801_343008001_4FGL_J2243.9+2021_daily_bin399.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/448125/ft2_4FGL_J2243.9+2021_daily_bin399.fits
.....................!
real 12.06
user 11.68
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/448125/ft1_filtered_4FGL_J2243.9+2021_daily_bin399.fits evtable="EVENTS" scfile=/scratch/kocevski/448125/ft2_4FGL_J2243.9+2021_daily_bin399.fits sctable="SC_DATA" expcube=/scratch/kocevski/448125/ltcube_342748801_343008001_4FGL_J2243.9+2021_daily_bin399.fits outfile=/scratch/kocevski/448125/expmap_342748801_343008001_4FGL_J2243.9+2021_daily_bin399.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/448125/ltcube_342748801_343008001_4FGL_J2243.9+2021_daily_bin399.fits
.....................!
real 191.37
user 186.51
sys 4.50

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/448125/ft1_filtered_4FGL_J2243.9+2021_daily_bin399.fits scfile=/scratch/kocevski/448125/ft2_4FGL_J2243.9+2021_daily_bin399.fits outfile=/scratch/kocevski/448125/cmap_342748801_343008001_4FGL_J2243.9+2021_daily_bin399.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/448125/ft1_filtered_4FGL_J2243.9+2021_daily_bin399.fits scfile=/scratch/kocevski/448125/ft2_4FGL_J2243.9+2021_daily_bin399.fits outfile=/scratch/kocevski/448125/cmap_HighResolution_342748801_343008001_4FGL_J2243.9+2021_daily_bin399.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    92.877       1.0000         .10000E-03   10000.    
     2 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .35731       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.393       1.0000         .10000E-03   10000.    
     6 'Prefactor '    93.973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .38022       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8455       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39077E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.1366       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .70252E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.901       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.992       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.3639       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11859E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89314       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1135       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=   7865.496     FROM MIGRAD    STATUS=CONVERGED    111 CALLS     2581 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     92.879        1.0993       -.13331E-06    .32104E-02
   2  norm          .10015E-03    16.659        .11410E-04** at limit **
   3  Prefactor     .10000E-03    5.4090        .24172E-05** at limit **
   4  norm          .37298        11.276       -.66892E-05   -.14995E-02
   5  Prefactor     11.395        1.1033       -.35802E-06    .54738E-03
   6  Prefactor     93.980        1.1681        .99847E-08    .32736E-04
   7  Prefactor     .10001E-03    6.9419       -.25761E-05** at limit **
   8  Prefactor     .38029        .18372       -.86103E-07   -.28034E-03
   9  Prefactor     .10000E-03    2.1539        .22715E-05** at limit **
  10  norm          .10000E-03    .61569       -.41891E-06** at limit **
  11  Prefactor     .10001E-03    8.5724        .21881E-05** at limit **
  12  norm          2.8452        1.7977        .11835E-07    .10066E-04
  13  Prefactor     .10398E-03    282.94       -.54560E-05** at limit **
  14  Prefactor     .10002E-03    6.1155        .43757E-05** at limit **
  15  Prefactor     .10001E-03    5.6331       -.63750E-05** at limit **
  16  Prefactor     .10000E-03    .46540E-01   -.49020E-07** at limit **
  17  Prefactor     9.1342        1.0427       -.96291E-07    .21216E-03
  18  Prefactor     .42556E-03    393.76       -.83824E-05** at limit **
  19  Prefactor     11.905        1.3587       -.78463E-06    .13246E-02
  20  Prefactor     13.987        1.4550       -.69243E-06    .22882E-02
  21  Prefactor     .10063E-03    10.171       -.82806E-05** at limit **
  22  Prefactor     1.3631        5.1437        .10346E-04    .14470E-02
  23  Prefactor     .10043E-03    13.938        .11014E-04** at limit **
  24  Normalizat    .89323        .25518        .14073E-05   -.52953E-04
  25  Prefactor     1.1138        .13864       -.20605E-05   -.90652E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 92.8794
  norm       = 0.00010015
  Prefactor  = 0.000100002
  norm       = 0.372982
  Prefactor  = 11.3951
  Prefactor  = 93.9804
  Prefactor  = 0.000100013
  Prefactor  = 0.380294
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010001
  norm       = 2.8452
  Prefactor  = 0.000103976
  Prefactor  = 0.000100025
  Prefactor  = 0.000100011
  Prefactor  = 0.0001
  Prefactor  = 9.13418
  Prefactor  = 0.000425555
  Prefactor  = 11.9051
  Prefactor  = 13.9866
  Prefactor  = 0.000100626
  Prefactor  = 1.36312
  Prefactor  = 0.000100435
  Normalizat = 0.893229
  Prefactor  = 1.11378
 **********
 **   18 **HESSE 
 **********

 FCN=   7865.496     FROM HESSE     STATUS=OK           507 CALLS     3088 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     92.879        69.576        .10425E-02   -1.3777    
   2  norm          .10015E-03    .44177        .52426E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.4628        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .37298        2.6861        .75801E-01   -1.5586    
   5  Prefactor     11.395        13.443        .29672E-02   -1.5033    
   6  Prefactor     93.980        97.093        .10365E-02   -1.3766    
   7  Prefactor     .10001E-03    7.1022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .38029        .19165        .57335E-02   -1.5585    
   9  Prefactor     .10000E-03    2.1566        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .36329        .29364E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    22.828        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.8452        1.8004        .60260E-02   -1.5371    
  13  Prefactor     .10398E-03    17.264        .13006       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    6.4425        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    5.8183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .35139E-01    .84469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     9.1342        8.3876        .33148E-02   -1.5103    
  18  Prefactor     .42556E-03    4.7507        .68071E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.905        10.267        .29030E-02   -1.5018    
  20  Prefactor     13.987        25.339        .26769E-02   -1.4960    
  21  Prefactor     .10063E-03    21.214        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.3631        5.3509        .93436E-02   -1.5474    
  23  Prefactor     .10043E-03    23.978        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89323        .22740        .82487E-01   -.96698    
  25  Prefactor     1.1138        .11952        .37094E-01   -.89027    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62759e-07
Minuit parameter uncertainties:
  1  69.6368
  2  0.000514154
  3  0.000201379
  4  2.00173
  5  13.4467
  6  97.2574
  7  0.000613552
  8  0.191652
  9  1.3775e-06
  10  2.75396e-07
  11  0.000936238
  12  1.80044
  13  0.0165754
  14  0.000796625
  15  0.000501654
  16  3.67582e-08
  17  8.38871
  18  0.0786602
  19  10.269
  20  25.3587
  21  0.00729343
  22  5.35277
  23  0.00645824
  24  0.227645
  25  0.119553
Done.

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

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  2.845e+00  1.800e+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.114e+00  1.196e-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:  8.932e-01  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.38
Ra Dec: 340.990 20.357
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 3.21e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 4.17e-05 +/- 2.64e-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) = 7863.70779993
delta logL = 1.78787806736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7863.51688539
delta logL = 1.97879261464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7338       1.0000         .10000E-03   10000.    
     2 'alpha     '    .82964       1.0000          .0000       5.0000    
     3 'Normalizat'    .88231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1254       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=   7863.517     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      203 TOTAL
                     EDM=   .76E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7339        1.1019        .79688E-02   -.20410E-03
   2  alpha         .82983        .29792        .28319       -.47195E-04
   3  Normalizat    .88240        .21585        .82841E-01    .29311E-04
   4  Prefactor     1.1254        .11858        .36692E-01   -.14431E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73395
  alpha      = 0.829832
  Normalizat = 0.882401
  Prefactor  = 1.12536
 **********
 **   18 **HESSE 
 **********

 FCN=   7863.517     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7339        1.6073        .65528E-04   -1.5445    
   2  alpha         .82983        .42854        .12597E-02   -.73161    
   3  Normalizat    .88240        .25165        .36677E-03   -.97081    
   4  Prefactor     1.1254        .13867        .17962E-03   -.88660    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55553e-13
Minuit parameter uncertainties:
  1  1.60732
  2  0.432428
  3  0.251982
  4  0.138714
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/448125': 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) = 7863.51688512
delta logL = 1.97879288368

Extracting fit parameters...

4FGL J2243.9+2021
   Spectrum: LogParabola
288         norm:  1.734e+00  1.607e+00  1.000e-04  1.000e+04 ( 1.000e-12)
289        alpha:  8.298e-01  4.324e-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:  1.125e+00  1.387e-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:  8.824e-01  2.520e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.34
Ra Dec: 340.990 20.357
Photon Index (Free Index): 0.83 +/- 0.43
Photon Flux (Free Index): 1.48e-08 +/- 9.96e-09
Energy Flux (Free Index): 1.86e-04 +/- 1.50e-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/448125/cmap_HighResolution_342748801_343008001_4FGL_J2243.9+2021_daily_bin399.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.21e-08', energy_flux2='1.86e-04', photon_flux_error='2.03e-08', dlogl='1.98e+00', energy_flux='4.17e-05', photon_flux2='1.48e-08', job_status='DONE', time_completed='2021-09-28 19:24:57.246877', photon_index_error2='0.43', photon_index2='0.83', ts='13.38', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='1.50e-04', EG='0.89', time_epoch_completed='1632882297.25', return_code='0', job_id='448125', GAL2='1.13', EG2='0.88', return_code2='0', energy_flux_error='2.64e-05', photon_flux_error2='9.96e-09', ts2='17.34', photon_index='1.72' WHERE bin_id='399' AND source_name='4FGL J2243.9+2021' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:24:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 448125: <4FGL_J2243.9+2021_daily_bin399> in cluster <slac> Done

Job <4FGL_J2243.9+2021_daily_bin399> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:10:38 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:10:39 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:39 2021
Terminated at Tue Sep 28 19:24:58 2021
Results reported at Tue Sep 28 19:24:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.9+2021_daily_bin399 340.99 20.3565 342748801 343008001 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 :                                   659.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             292.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            860 sec.

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

